Package toxi.physics2d.behaviors
Interface ParticleBehavior2D
- All Known Implementing Classes:
AttractionBehavior2D
,ConstantForceBehavior2D
,GravityBehavior2D
public interface ParticleBehavior2D
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Applies the constraint to the passed in particle.void
applyWithIndex
(SpatialIndex<Vec2D> index) void
configure
(float timeStep) boolean
-
Method Details
-
apply
Applies the constraint to the passed in particle. The method is assumed to manipulate the given instance directly.- Parameters:
p
- particle
-
applyWithIndex
-
configure
void configure(float timeStep) -
supportsSpatialIndex
boolean supportsSpatialIndex()
-