Jump to content
  • Advertisement


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


Math Problem

This topic is 6914 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 have the pitch and yaw angles along with a point in 3d space.how do i move it along the given direction?? i have employed the foll method-is it correct?? deltaX=dist * Sin(Yaw) * Cos(Pitch) deltaY=dist * Sin(Pitch) deltaZ=dist * Cos(Yaw) * Cos(Pitch) here the dist is the distance moved by the point in the particular direction and Yaw and Pitch are the angles made with the Y & X axis respectively. This formula fails when Yaw and Pitch are 45 degs=the vals i get are- here dist=1- deltaX=0.5 deltaY=1/(2^0.5) (one by root two!!) deltaZ=0.5 but the increments are supposed to be equal if they are inclined at 45 degs to both axes. Why is it like this? Pls help me out! Thanks a lot, Hey Witchlord ( Thanks a million for ur PATIENCE!!! ) sandeep_kl@mailcity.com Jayanth.K

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!