Jump to content
  • Advertisement

Archived

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

zalian

Scaling, rotating, translating

This topic is 6519 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

Hi! Let''s imagine following: You have an object, which has ie. four meshes. (In my case I use XFile function called Load to retrieve the meshes from the file.) Then you want to scale it and then rotate it. When you scale it, the tires, in my case are not scaling properly with the carbody. Any explanation why? And when you have tried to scale it, and want to rotate it, the object is not anymore scaled. It returns to original size. Why? Thanks.

Share this post


Link to post
Share on other sites
Advertisement
Need more info.
I think you are scaling on a set of vertices and then rotating the original vertices (ie the one which is not scaled). Otherwise I don''t see any reason for the problem. Try concatenating the scale matrix and rotation matrix using multiplication. That should do 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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!