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