Package toxi.physics3d.constraints
Class BoxConstraint
java.lang.Object
toxi.physics3d.constraints.BoxConstraint
- All Implemented Interfaces:
ParticleConstraint3D
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidApplies the constraint to the passed in particle.getBox()floatvoidvoidsetRestitution(float restitution)
-
Constructor Details
-
BoxConstraint
-
BoxConstraint
-
-
Method Details
-
apply
Description copied from interface:ParticleConstraint3DApplies the constraint to the passed in particle. The method is assumed to manipulate the given instance directly.- Specified by:
applyin interfaceParticleConstraint3D- Parameters:
p- particle
-
getBox
-
getRestitution
public float getRestitution() -
setBox
-
setRestitution
public void setRestitution(float restitution)
-