Uses of Class
toxi.physics2d.VerletParticle2D
Packages that use VerletParticle2D
-
Uses of VerletParticle2D in toxi.physics2d
Fields in toxi.physics2d declared as VerletParticle2DModifier and TypeFieldDescriptionVerletSpring2D.aSpring end points / particlesVerletSpring2D.bSpring end points / particlesFields in toxi.physics2d with type parameters of type VerletParticle2DModifier and TypeFieldDescriptionParticleString2D.particlesVerletPhysics2D.particlesList of particlesMethods in toxi.physics2d that return VerletParticle2DModifier and TypeMethodDescriptionVerletParticle2D.addBehavior(ParticleBehavior2D behavior) VerletParticle2D.addBehavior(ParticleBehavior2D behavior, float timeStep) VerletParticle2D.addBehaviors(Collection<ParticleBehavior2D> behaviors) VerletParticle2D.addBehaviors(Collection<ParticleBehavior2D> behaviors, float timeStemp) VerletParticle2D.addConstraint(ParticleConstraint2D c) Adds the given constraint implementation to the list of constraints applied to this particle at each time step.VerletParticle2D.addConstraints(Collection<ParticleConstraint2D> constraints) VerletParticle2D.addVelocity(Vec2D v) VerletParticle2D.clearForce()VerletParticle2D.clearVelocity()ParticleString2D.getHead()Returns the first particle of the string.ParticleString2D.getTail()Returns last particle of the string.VerletParticle2D.lock()Locks/immobilizes particle in spaceVerletParticle2D.removeAllBehaviors()VerletParticle2D.removeAllConstraints()Removes any currently applied constraints from this particle.VerletParticle2D.scaleVelocity(float scl) VerletParticle2D.setPreviousPosition(Vec2D p) VerletParticle2D.unlock()Unlocks particle againMethods in toxi.physics2d that return types with arguments of type VerletParticle2DModifier and TypeMethodDescriptionParticlePath2D.createParticles(VerletPhysics2D physics, int subDiv, float step, float mass) Creates particles along the spline at the fixed interval given.Methods in toxi.physics2d with parameters of type VerletParticle2DModifier and TypeMethodDescriptionVerletPhysics2D.addParticle(VerletParticle2D p) Adds a particle to the listbooleanVerletPhysics2D.removeParticle(VerletParticle2D p) Removes a particle from the simulation.Method parameters in toxi.physics2d with type arguments of type VerletParticle2DModifier and TypeMethodDescriptionstatic voidVerletPhysics2D.addConstraintToAll(ParticleConstraint2D c, List<VerletParticle2D> list) static voidVerletPhysics2D.removeConstraintFromAll(ParticleConstraint2D c, List<VerletParticle2D> list) Constructors in toxi.physics2d with parameters of type VerletParticle2DModifierConstructorDescriptionVerletConstrainedSpring2D(VerletParticle2D a, VerletParticle2D b, float len, float str) VerletConstrainedSpring2D(VerletParticle2D a, VerletParticle2D b, float len, float str, float limit) VerletMinDistanceSpring2D(VerletParticle2D a, VerletParticle2D b, float len, float str) Creates a copy of the passed in particleVerletSpring2D(VerletParticle2D a, VerletParticle2D b, float len, float str) Constructor parameters in toxi.physics2d with type arguments of type VerletParticle2DModifierConstructorDescriptionParticleString2D(VerletPhysics2D physics, List<VerletParticle2D> plist, float strength) Takes a list of already created particles connects them into a continuous string using springs. -
Uses of VerletParticle2D in toxi.physics2d.behaviors
Methods in toxi.physics2d.behaviors with parameters of type VerletParticle2DModifier and TypeMethodDescriptionvoidAttractionBehavior2D.apply(VerletParticle2D p) voidConstantForceBehavior2D.apply(VerletParticle2D p) voidParticleBehavior2D.apply(VerletParticle2D p) Applies the constraint to the passed in particle. -
Uses of VerletParticle2D in toxi.physics2d.constraints
Methods in toxi.physics2d.constraints with parameters of type VerletParticle2DModifier and TypeMethodDescriptionvoidAngularConstraint.apply(VerletParticle2D p) voidAxisConstraint.apply(VerletParticle2D p) voidCircularConstraint.apply(VerletParticle2D p) voidMaxConstraint.apply(VerletParticle2D p) voidMinConstraint.apply(VerletParticle2D p) voidParticleConstraint2D.apply(VerletParticle2D p) Applies the constraint to the passed in particle.voidPolygonConstraint.apply(VerletParticle2D p) voidRectConstraint.apply(VerletParticle2D p)