Package toxi.physics3d.constraints
Interface ParticleConstraint3D
- All Known Implementing Classes:
AxisConstraint
,BoxConstraint
,CylinderConstraint
,MaxConstraint
,MinConstraint
,PlaneConstraint
,SoftBoxConstraint
,SphereConstraint
public interface ParticleConstraint3D
Defines an interface used to constrain VerletParticles based on a custom
criteria (e.g. only allowed to move along an axis or shape etc.). The
constraints will be applied directly after each spring update. Constraints
are only applied to particles they've been assigned to and which are not
locked.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Applies the constraint to the passed in particle.
-
Method Details
-
apply
Applies the constraint to the passed in particle. The method is assumed to manipulate the given instance directly.- Parameters:
p
- particle
-