Package toxi.physics2d.behaviors
Interface ParticleBehavior2D
- All Known Implementing Classes:
AttractionBehavior2D,ConstantForceBehavior2D,GravityBehavior2D
public interface ParticleBehavior2D
-
Method Summary
Modifier and TypeMethodDescriptionvoidApplies the constraint to the passed in particle.voidapplyWithIndex(SpatialIndex<Vec2D> index) voidconfigure(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()
-