Skip to main content
GameDev.net gamedev.net
🔒 Locked

Bounce?

Started by MetaKnight Feb 14, 2003 at 11:18 PM 0 replies 300+ views
Original Post
MetaKnight
MetaKnight
When a ball bounces off a wall you reflect the balls velocity on the normal of the wall like so, at equal angles how would i do that? like mathimathicly writen i know the velocity and the normal \ | / \ | / \ | / \ | / -------------
Nypyren
Nypyren
find "vector projection" equations (pretty simple)

project velocity onto the normal.

multiply that result by 2 (both x and y), and subtract it from the original velocity.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.