Class pv.Constraint
Represents a constraint that acts on particles. Note that this
interface does not specify how to bind a constraint to specific particles; in
general, constraints are applied globally to all particles. However, some
constraints may be applied to specific particles or between particles, such
as position constraints, through additional specialization.
Defined in: Constraint.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Abstract; see an implementing class.
|
Method Attributes | Method Name and Description |
---|---|
apply(particles, q)
Applies this constraint to the specified particles.
|
Method Detail
{pv.Constraint}
apply(particles, q)
Applies this constraint to the specified particles.
- Parameters:
- {pv.Particle} particles
- particles to which to apply this constraint.
- {pv.Quadtree} q
- a quadtree for spatial acceleration.
- Returns:
- {pv.Constraint} this.