LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Bouncing 3D Ball

Hi, im new kind of new in LabVIEW and im practicing some excercises that my teacher told me to do.

One of them was to make a 3D bouncing ball using some physics formulas.

Im just trying to get some feedback on stuff i could change.

Also i could kind of center the bouncing ball.

Sorry if i have bad english im from Mexico.

Pelota que rebota=Ball that bounces

Download All
0 Kudos
Message 1 of 2
(2,013 Views)

All you need is a single toplevel while loop and some kind of simple physics engine.

 

Start with a simple xy graph and a single point until you get the physics right, the add the third dimension (xyz) at the end. The physics does not change, so you probably don't need separate states, just keep track of the momentum, direction, and gravity, and bounce off the various edges. I doubt that you would need any local variables.

 

A very simple example (more like a pool table, no gravity), can be found here.

0 Kudos
Message 2 of 2
(1,988 Views)