Jump to content
  • Advertisement

Archived

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

PsycoBlade

rotating things

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

Is there any way to force PR_RotateEntity and PR_RotateEntityAbs rotate the entity around the -worldspace- coordinates instead of object''s coordinates. That would be really helpful. I''m trying to make a ball rotate so that it looks like its rolling on the floor, but using these functions, it rotates around the entity''s axis instead of the world''s axis, which doesn''t look right in this situation. -Rich PS. Maybe there is a better way to rotate objects than the PR_RotateEntity/Abs functions? Should I use matricies/quanternions?

Share this post


Link to post
Share on other sites
Advertisement
You need a rotate about axis function. Quaternions can be used, or you could do it with matrices.

http://www.swin.edu.au/astronomy/pbourke/geometry/rotate/

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!