Package toxi.physics2d.behaviors
Class GravityBehavior2D
java.lang.Object
toxi.physics2d.behaviors.ConstantForceBehavior2D
toxi.physics2d.behaviors.GravityBehavior2D
- All Implemented Interfaces:
ParticleBehavior2D
-
Constructor Summary
ConstructorDescriptionGravityBehavior2D
(Vec2D gravity) GravityBehavior2D
(Vec2D gravity, float timeStep) -
Method Summary
Methods inherited from class toxi.physics2d.behaviors.ConstantForceBehavior2D
apply, applyWithIndex, configure, getForce, supportsSpatialIndex
-
Constructor Details
-
GravityBehavior2D
-
GravityBehavior2D
-
-
Method Details
-
setForce
- Overrides:
setForce
in classConstantForceBehavior2D
- Parameters:
force
- the force to set
-