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 / 3d velocity question

Author
Message
Cpt Caveman
22
Years of Service
User Offline
Joined: 29th Aug 2002
Location: New Zealand
Posted: 24th May 2003 09:04
I have a cube that moves around a matrix with the cursor keys. What I want to do is to be able to tell the velocity of the cube when its moving forward, no matter what direction its pointing in. At the moment all I get is positive and negative results depending on what direction I'm facing. I want only positive. If anyone can help it would be greatly appreciated.
haggisman
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 24th May 2003 12:47
Its exactly the same as finding the distance between two points formula. IE.



Since you now have the distance travelled all you have to do to get the velocity is to divide it by the time taken.

project: light/obscurance mapper (80% done)
Cpt Caveman
22
Years of Service
User Offline
Joined: 29th Aug 2002
Location: New Zealand
Posted: 25th May 2003 02:07
Excellent, it appears to work perfectly, thankyou very much

Login to post a reply

Server time is: 2024-09-20 09:54:04
Your offset time is: 2024-09-20 09:54:04