Jump to content
Sign in to follow this  
celery

setVectorDir yaw calculation

Recommended Posts

Hi guys,

I never took any advanced math lessons so I need help with the setVectorDir command. Basically I need to change only the yaw of a vehicle that stands on uneven ground. setDir makes all other axes go straight and that will cause glitching.

How do I make a vehicle yaw, say 1 degree to the right without any other axis being messed up?

Share this post


Link to post
Share on other sites

I use Gen Barron's functions for my needs too.

What I would do is get the pitch/bank of the vehicle, set the new direction with setdir, and just set the pitch/bank to the saved value.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×