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

collision response

Started by tylerbingham Oct 10, 2002 at 2:07 PM 0 replies 450+ views
Original Post
tylerbingham
tylerbingham
I need to know how to make a ball(or square) bounce off a wall at the correct angle.I can make it bounce around a square room,but not an irregular shaped room(like a circular room or an odd angled room).
zedzeek
zedzeek
V = V - (N*(V.N))*2

. = dot product
N = normal of surface
V = velocity

http://uk.geocities.com/sloppyturds/kea/kea.html
http://uk.geocities.com/sloppyturds/gotterdammerung.html

Topic Locked

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

Sign in to reply to this topic.