Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Can't bounce ball off of opposite wall; goes behind bricks and flickering too much - Need help with Brick Breaker
Index -> Programming, Turing -> Turing Help
Goto page Previous  1, 2
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
MihaiG




PostPosted: Sat Jun 01, 2013 5:08 pm   Post subject: Re: Can't bounce ball off of opposite wall; goes behind bricks and flickering too much - Need help with Brick Breaker

Think of it like this.. if you bounce a ball off a wall in a perfect system. it bounces right back at you with the same speed.. so what has changed? well the speed is the same the the velocity a vector value has been multiplied by -1. Now we can extrapolate this into 2d, if we bounce it off a vertical plane the vertical component stays the same but the horizontal component gets reversed.
Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 2 of 2  [ 16 Posts ]
Goto page Previous  1, 2
Jump to:   


Style:  
Search: