Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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
 

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.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top