Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

billybob

calculating the location of a tire...

This topic is 5979 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i need to be able to find the location of a tire relative to a rotated car. it can be at any angle, because the terrain is uneven. i have the center of rotation, and the x, y, z coords of the tire around that unrotated . how would i get the location of the tires after the car was rotated?

Share this post


Link to post
Share on other sites
Advertisement
Hey,


If your using rotation matrices to rotate the car or actually any method just apply its rotation to the wheels possition.

ie:

Matrix m;
m.Rotate(whatever);
m.applytoallcarparts();
m.ApplytoVector(WheelPossition);

?



Share this post


Link to post
Share on other sites
i''m using directx''s matrixes to rotate the car, but i don''t know how to get coordinates back from it.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!