• Advertisement
Sign in to follow this  

Need Help with vector math to move sphere on road

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

Can anyone help me with the math I need to get a sphere(ball) on a road to move left or right as its rolling forward? Basically I have a sphere on a road and when the player pushes forward it moves forward, but I can't get the math to move the sphere to the left or right when they press move left/right... I am thinking I need the Dot product of the fwd vector and the left or right vector? and then move the ball to that angle? Thanks for any help or suggestions

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement