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 / Gravity effects in 3d matrix

Author
Message
me6
20
Years of Service
User Offline
Joined: 26th Apr 2004
Location:
Posted: 27th Apr 2004 00:55
I was wondering if anyone know how to add gravity effects to a 3d matrix and 3d objects inside it. So like ifthe user presses the space bar the gravity turns off temorarily so the 3d object goes up then he comes back down.

"A Programmer is the same thing as a Psycho, except for one difference----A programmer gets paid to do what he does."*--Brian Jennings
zircher
21
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 27th Apr 2004 00:59 Edited at: 27th Apr 2004 01:01
Check out the Nuclear Glory Collision DLL. It has a simple set gravity function and you could easily apply a negative number with it.

Whether you use the NGC DLL or not, gravity is really just a matter of applying a little positive or negative Y movement of all your objects and then checking for collisions.
--
TAZ

Login to post a reply

Server time is: 2024-09-22 06:32:20
Your offset time is: 2024-09-22 06:32:20