Advertisement Jump to content
Sign in to follow this  

Need Help with vector math to move sphere on road

This topic is 3565 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
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. 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!