Jump to content
  • Advertisement

Archived

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

a2k

3d direction vector

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

how do you obtain direction vectors from, say, quaternions, or from, like axis/angle representation? and also, if i use quaternions, and convert back to euler angles, will the angles produced from the euler method produce "smoother" interpolation than that from a direct sin/cos rotation? a2k

Share this post


Link to post
Share on other sites
Advertisement
Direct manipulation with sin/cos are fine for uniform operation, where using LERPs and SLERPs can give you near-completely arbitrary interpolation.

Here is a document that pretty well covers it:

[url]http://www.gamasutra.com/features/programming/19980703/quaternions_01.htm[/url]

Share this post


Link to post
Share on other sites
yeah, been there already, and i like that article, but how about a direction vector? i just need the object to travel along a direction vector.

a2k

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!