View Single Post
Join Date: Jul 2006
Posts: 1,091
Reputation: MattEvans is a jewel in the rough MattEvans is a jewel in the rough MattEvans is a jewel in the rough 
Solved Threads: 63
Moderator
Featured Poster
MattEvans's Avatar
MattEvans MattEvans is offline Offline
Veteran Poster

Re: Breakout Ball bouncing physics

 
0
  #14
May 17th, 2008
Based on a quick test in something I've got running ATM, that last bit of code I posted:
velocity2 = ( 2 * surface_normal * surface_normal.dot( velocity1 ) ) - velocity1;
Should probably be:
velocity2 = velocity1 - ( 2 * surface_normal * surface_normal.dot( velocity1 ) );
!
Plato forgot the nullahedron..
Reply With Quote