Package toxi.physics3d.behaviors
Class ConstantForceBehavior3D
java.lang.Object
toxi.physics3d.behaviors.ConstantForceBehavior3D
- All Implemented Interfaces:
ParticleBehavior3D
- Direct Known Subclasses:
GravityBehavior3D
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ConstantForceBehavior3D
-
-
Method Details
-
apply
Description copied from interface:ParticleBehavior3D
Applies the constraint to the passed in particle. The method is assumed to manipulate the given instance directly.- Specified by:
apply
in interfaceParticleBehavior3D
- Parameters:
p
- particle
-
configure
public void configure(float timeStep) - Specified by:
configure
in interfaceParticleBehavior3D
-
getForce
- Returns:
- the force
-
setForce
- Parameters:
force
- the force to set
-