|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttoxi.physics.constraints.AxisConstraint
public class AxisConstraint
Constrains a particle's movement by locking a given axis to a fixed value.
Field Summary | |
---|---|
toxi.geom.Vec3D.Axis |
axis
|
float |
constraint
|
Constructor Summary | |
---|---|
AxisConstraint(toxi.geom.Vec3D.Axis axis,
float constraint)
|
Method Summary | |
---|---|
void |
apply(VerletParticle p)
Applies the constraint to the passed in particle. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public float constraint
public toxi.geom.Vec3D.Axis axis
Constructor Detail |
---|
public AxisConstraint(toxi.geom.Vec3D.Axis axis, float constraint)
axis
- axis to lockconstraint
- constrain the axis to this valueMethod Detail |
---|
public void apply(VerletParticle p)
ParticleConstraint
apply
in interface ParticleConstraint
p
- particle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |