Advertisement

How do I make a object travel in the facing direction?

Started by May 14, 2001 03:43 PM
0 comments, last by royster 23 years, 9 months ago
Anyone have the vector information for this? I have managed to make the car object travel forward/backward in the scene but it keeps getting rotated around the start axis. Edited by - royster on May 14, 2001 4:54:40 PM
try uh... if i remember correctly.

  x = x + (number of units to move * sin(direction));y = y - (number of units to move * cos(direction));  


now the + and - may need to be reversed.. i always forget it''s been while.

hope that helps... btw.. that''s only in 2D, 3D i''m not sure of off the top of my head.

Scott

Email
Website

"If you try and don''t succeed, destroy all evidence that you tried."

This topic is closed to new replies.

Advertisement