Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (TipmyPip, AndrewAMD), 14,136 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
running around a sphere - im lost :( #92896
10/03/06 15:28
10/03/06 15:28
Joined: Sep 2005
Posts: 42
SusanJ Offline OP
Newbie
SusanJ  Offline OP
Newbie

Joined: Sep 2005
Posts: 42
Hi

Ive asked this before and despite the help and searching high and low for a tutorial or something to help me figure it out im at a total loss!.

I want to be able to use my game character and walk around a sphere without falling off. like make him stick to the sphere but still be able to move around it and jump etc without falling off. if that makes sense?

can anyone get me started on how i would do this please, but i have to say im still learning the scripting side of things but i would really appreciate any help you can give me. i really need to accomplish this because i need it for a certain part of my game.

Thank you in advance xx.

Re: running around a sphere - im lost :( [Re: SusanJ] #92897
10/03/06 16:15
10/03/06 16:15
Joined: May 2005
Posts: 819
U.S.
Why_Do_I_Die Offline
Warned
Why_Do_I_Die  Offline
Warned

Joined: May 2005
Posts: 819
U.S.
Well , thats something thats pretty complex to do , and I dont think Ive ever seen anyone here do it before , though I have seen it discussed. And from the new Mario Galaxy game it looks like Myamoto found a proper way to do it and based the whole new Mario game on it , though it looks like the gayest Mario game to date , and this is coming from a big mario fan. I would say , the easiest way would be to rotate the level around the player and have the player do fake walking , of course if your looking to implement something like this on a big or full level , it might get hard and confusing. You can also just do traces and do vec_rotates or something depending on where the trace hits. This are just ideas , as Ive never done such a thing , I once made movement where the player could walk all around a cube , and I actually got it working pretty good , but in the end the camera coding was too much for me and I gave up the idea. Good luck with your project.

Re: running around a sphere - im lost :( [Re: Why_Do_I_Die] #92898
10/03/06 17:44
10/03/06 17:44
Joined: Jul 2000
Posts: 8,973
Bay Area
Doug Offline
Senior Expert
Doug  Offline
Senior Expert

Joined: Jul 2000
Posts: 8,973
Bay Area
The FPS "Prey" did a good job with sphere-walking (and with gravity in general).

If you've mastered basic "biped movement" on your own, this shouldn't be too hard. Just calculate a vector from the character's center to the center of your sphere (update it each frame). Use this vector to adjust the gravity and orientate the player.

Okay, you'll need to understand basic movement and basic vector math.


Conitec's Free Resources:
User Magazine || Docs and Tutorials || WIKI
Re: running around a sphere - im lost :( [Re: Doug] #92899
10/03/06 18:21
10/03/06 18:21
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
http://www.coniserver.net/ubbthreads/fav...amp;postmarker=
http://www.coniserver.net/ubbthreads/fav...amp;postmarker=

http://www.coniserver.net/ubbthreads/fav...amp;postmarker=

Its a bit more complicated as you think. When walking on spheres you will have some trouble with the gimbal lock phenomenon. The 3rd URL doesnt deal with spheres, but I tell Kihaku a bit more about gimbal lock. Read the related Wikipedia article to understand it.


Gamestudio download | 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