Uses of Class
toxi.physics2d.VerletPhysics2D
Packages that use VerletPhysics2D
-
Uses of VerletPhysics2D in toxi.physics2d
Methods in toxi.physics2d that return VerletPhysics2DModifier and TypeMethodDescriptionVerletPhysics2D.addParticle(VerletParticle2D p) Adds a particle to the listVerletPhysics2D.addSpring(VerletSpring2D s) Adds a spring connectorVerletPhysics2D.clear()VerletPhysics2D.setWorldBounds(Rect world) Sets bounding boxVerletPhysics2D.update()Progresses the physics simulation by 1 time step and updates all forces and particle positions accordinglyMethods in toxi.physics2d with parameters of type VerletPhysics2DModifier and TypeMethodDescriptionParticlePath2D.createParticles(VerletPhysics2D physics, int subDiv, float step, float mass) Creates particles along the spline at the fixed interval given.Constructors in toxi.physics2d with parameters of type VerletPhysics2DModifierConstructorDescriptionParticleString2D(VerletPhysics2D physics, List<VerletParticle2D> plist, float strength) Takes a list of already created particles connects them into a continuous string using springs.ParticleString2D(VerletPhysics2D physics, Vec2D pos, Vec2D step, int num, float mass, float strength) Creates a number of particles along a line and connects them into a string using springs.