Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (AbrahamR, wdlmaster, 7th_zorro, dr_panther, 1 invisible), 764 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Spherical Gravity and the End of Time Bandits [Re: fastlane69] #19146
02/17/04 05:49
02/17/04 05:49
Joined: Oct 2003
Posts: 44
Kentucky
Teelo888 Offline
Newbie
Teelo888  Offline
Newbie

Joined: Oct 2003
Posts: 44
Kentucky
I would REALLY like to know how to set the gravity inside of a sphere, that would be so freaking cool... fastlane do you think you could post up how you did it? It would be much appreciated!

Re: Spherical Gravity and the End of Time Bandits [Re: Teelo888] #19147
02/17/04 09:38
02/17/04 09:38
Joined: Mar 2003
Posts: 5,377
USofA
fastlane69 Offline
Senior Expert
fastlane69  Offline
Senior Expert

Joined: Mar 2003
Posts: 5,377
USofA
inside a sphere?
-Gravity inside a hollow sphere is zero.
-Gravity at a certain radius inside a solid sphere depends on how much mass is contained within that radius.

In order to set Gravity in spheres in such, it's best to think in spherical coordiantes (rho, theta, phi). In this case, gravity will be constant in (theta, phi) and have the classic 1/(rho) squared behaiviour. Now you can convert this to Cartesian Coordinates to align them with the levels absolute coordinate


Re: Spherical Gravity and the End of Time Bandits [Re: fastlane69] #19148
02/17/04 12:43
02/17/04 12:43
Joined: Oct 2003
Posts: 44
Kentucky
Teelo888 Offline
Newbie
Teelo888  Offline
Newbie

Joined: Oct 2003
Posts: 44
Kentucky
ummmmmmm, im really sorry but i didnt really catch much of that... I just would like to know how to make a sphere(a planet) on a game pull objects in twards it, much like earth, so you could just run around it and what-not. Me and my friends are making a game and we would like to know how to do that.

Re: Spherical Gravity and the End of Time Bandits [Re: Teelo888] #19149
02/17/04 12:50
02/17/04 12:50
Joined: Mar 2003
Posts: 5,377
USofA
fastlane69 Offline
Senior Expert
fastlane69  Offline
Senior Expert

Joined: Mar 2003
Posts: 5,377
USofA
Hate to burst your bubble but making a spherical world will be challenging even without messing with these levels of maths. If the above doesn't make sense to you, you may be a bit over your head as regards a spherical environment.

Long story short, there is no quick and easy way to do this in 3DGS that I'm aware of. It can be done I think, but would require alot of coordiante transformation work and thus if you aren't comfortable with sperical, polar, and cartesian coordinate, then my advice is to "fake" the spherical world as has been suggested.


Re: Spherical Gravity and the End of Time Bandits [Re: fastlane69] #19150
02/17/04 13:58
02/17/04 13:58
Joined: Oct 2003
Posts: 44
Kentucky
Teelo888 Offline
Newbie
Teelo888  Offline
Newbie

Joined: Oct 2003
Posts: 44
Kentucky
Ok man, thanks for your help, lol if you want to, you can add me to your msn or aim list. My name on aim is teelo888 and the msn email address is teelo888@msn.com. Hopefully you can help me with some other problems im having, if you cant, thats ok too.

Re: Spherical Gravity and the End of Time Bandits [Re: Teelo888] #19151
02/17/04 14:09
02/17/04 14:09
Joined: Mar 2003
Posts: 5,377
USofA
fastlane69 Offline
Senior Expert
fastlane69  Offline
Senior Expert

Joined: Mar 2003
Posts: 5,377
USofA
Not big into the IM scene.
Just come by and ask here in the forums anytime you want!!
We'll be here!!



Page 2 of 2 1 2

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1