Uses of Class
toxi.physics2d.VerletParticle2D
-
Uses of VerletParticle2D in toxi.physics2d
Modifier and TypeFieldDescriptionVerletSpring2D.a
Spring end points / particlesVerletSpring2D.b
Spring end points / particlesModifier and TypeFieldDescriptionParticleString2D.particles
VerletPhysics2D.particles
List of particlesModifier 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 againModifier and TypeMethodDescriptionParticlePath2D.createParticles
(VerletPhysics2D physics, int subDiv, float step, float mass) Creates particles along the spline at the fixed interval given.Modifier and TypeMethodDescriptionVerletPhysics2D.addParticle
(VerletParticle2D p) Adds a particle to the listboolean
VerletPhysics2D.removeParticle
(VerletParticle2D p) Removes a particle from the simulation.Modifier and TypeMethodDescriptionstatic void
VerletPhysics2D.addConstraintToAll
(ParticleConstraint2D c, List<VerletParticle2D> list) static void
VerletPhysics2D.removeConstraintFromAll
(ParticleConstraint2D c, List<VerletParticle2D> list) ModifierConstructorDescriptionVerletConstrainedSpring2D
(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) ModifierConstructorDescriptionParticleString2D
(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
Modifier and TypeMethodDescriptionvoid
AttractionBehavior2D.apply
(VerletParticle2D p) void
ConstantForceBehavior2D.apply
(VerletParticle2D p) void
ParticleBehavior2D.apply
(VerletParticle2D p) Applies the constraint to the passed in particle. -
Uses of VerletParticle2D in toxi.physics2d.constraints
Modifier and TypeMethodDescriptionvoid
AngularConstraint.apply
(VerletParticle2D p) void
AxisConstraint.apply
(VerletParticle2D p) void
CircularConstraint.apply
(VerletParticle2D p) void
MaxConstraint.apply
(VerletParticle2D p) void
MinConstraint.apply
(VerletParticle2D p) void
ParticleConstraint2D.apply
(VerletParticle2D p) Applies the constraint to the passed in particle.void
PolygonConstraint.apply
(VerletParticle2D p) void
RectConstraint.apply
(VerletParticle2D p)