ⓘ This web page is about the old AlgoSim 2 software. Perhaps you are looking for the new Algosim 3 application?
AlgoSim
Homepage | Screenshots | Gallery of Visualisation | User's Guide | Function Reference | Download | FAQ | Support | Bugs and Solutions | Donate

Reference: animateTrajectory3

animateTrajectory3(S, I, b) animates the particle or flow trajectory set S, created using computeParticleTrajectory or computeFlowTrajectory. S is required to be a subset of R^3. I is the number of steps in time per frame. If b=true, the particle's trace is shown on the screen.

Example: Bouncing ball in gravity in a 3D box
         trajectory ≔ computeParticleTrajectory("❨0, 0, -1❩", "r", ❨-10, 10, 10❩, ❨1, 2, 0❩, 0, 100, 0.01, ❨-10, 10, -10, 10, -10, 10❩, 0.8)
         animateTrajectory3("trajectory", 30, true)