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