Creating a Bouncing Ball program in C on a FPGRA board

Status
Not open for further replies.

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
 

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.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…