Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Prey-like planetary gravity system... How?

Author
Message
Mr X
19
Years of Service
User Offline
Joined: 25th Sep 2005
Location: Universe, milkyway, sol-system, Earth...
Posted: 29th Mar 2007 21:10
Hi all.

I'm trying to create a Prey like gravity system, where you can walk around on this "planet" with your sphere. But there are some major difficulties which I don't know how to do. When you walk around a "planet", the sphere should face the direction so that it really feels like you're walking on a planet. But I can't figure out how to do that. Can anyone point me in the right direction (I'm not asking you to code for me, but to help me to understand how I should code)?

Code:
Mr X
19
Years of Service
User Offline
Joined: 25th Sep 2005
Location: Universe, milkyway, sol-system, Earth...
Posted: 31st Mar 2007 13:56 Edited at: 31st Mar 2007 13:56
Ok, here is what I want to do. If you are the sphere on top of the big sphere, and you just move forward, I want the perspective of it to change. On the top it faces to your left and when you've moved, it faces down, and it does so automatically. This is what I want do do, but don't know how. Can anyone help me?

Attachments

Login to view attachments
Crit
18
Years of Service
User Offline
Joined: 24th May 2006
Location:
Posted: 31st Mar 2007 19:45 Edited at: 31st Mar 2007 20:18
I just wrote some code to do that a few days ago.




And here it is with a 3rd person camera

Mr X
19
Years of Service
User Offline
Joined: 25th Sep 2005
Location: Universe, milkyway, sol-system, Earth...
Posted: 2nd Apr 2007 20:11
Thanks Crit . This is exactly what I need, and I'll take a closer look at it in a copple of days (have much to do in school).

Login to post a reply

Server time is: 2024-11-25 22:51:24
Your offset time is: 2024-11-25 22:51:24