May 1, 2011 #1 D Digit0001 Member level 1 Joined Jun 12, 2010 Messages 41 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,286 Activity points 1,547 Creating a Bouncing Ball program in C on a FPGA board Hi I have having trouble on how would you make the ball move i know you would need to have something like this to move the ball, but how does this work. x = x + dx and y = y + dy Hope someone can help me P.S
Creating a Bouncing Ball program in C on a FPGA board Hi I have having trouble on how would you make the ball move i know you would need to have something like this to move the ball, but how does this work. x = x + dx and y = y + dy Hope someone can help me P.S
May 14, 2011 #2 G grieblm Member level 4 Joined May 7, 2011 Messages 75 Helped 18 Reputation 36 Reaction score 18 Trophy points 1,308 Location Georgetown, Canada Activity points 1,734 You'll need an algorithm to calculate the ball's trajectory to simulate the physics of a real ball. Look up in your physics text, the laws of motion for ballistic objects. The dx/dy values are then modified based on the ballistic equations.
You'll need an algorithm to calculate the ball's trajectory to simulate the physics of a real ball. Look up in your physics text, the laws of motion for ballistic objects. The dx/dy values are then modified based on the ballistic equations.