11-19-2019 12:42 AM
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
11-19-2019 01:40 AM - edited 11-19-2019 01:42 AM
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.