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.a
Spring end points / particlesVerletSpring2D.b
Spring end points / particlesFields in toxi.physics2d with type parameters of type VerletParticle2DModifier and TypeFieldDescriptionParticleString2D.particles
VerletPhysics2D.particles
List 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 listboolean
VerletPhysics2D.removeParticle
(VerletParticle2D p) Removes a particle from the simulation.Method parameters in toxi.physics2d with type arguments of type VerletParticle2DModifier and TypeMethodDescriptionstatic void
VerletPhysics2D.addConstraintToAll
(ParticleConstraint2D c, List<VerletParticle2D> list) static void
VerletPhysics2D.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 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
Methods in toxi.physics2d.constraints with parameters of type VerletParticle2DModifier 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)