public class WorldConstraint extends AxisPlaneConstraint
The AxisPlaneConstraint.translationConstraintDirection()
and
AxisPlaneConstraint.rotationConstraintDirection()
are expressed in the world coordinate system.
AxisPlaneConstraint.Type
Constructor and Description |
---|
WorldConstraint() |
Modifier and Type | Method and Description |
---|---|
Rotation |
constrainRotation(Rotation rotation,
Frame frame)
When
AxisPlaneConstraint.rotationConstraintType() is of type AXIS, constrain rotation to
be a rotation around an axis whose direction is defined in the Frame world coordinate
system by AxisPlaneConstraint.rotationConstraintDirection() . |
Vec |
constrainTranslation(Vec translation,
Frame frame)
Depending on
AxisPlaneConstraint.translationConstraintType() , constrain translation to
be along an axis or limited to a plane defined in the world coordinate system by
AxisPlaneConstraint.translationConstraintDirection() . |
rotationConstraintDirection, rotationConstraintType, setRotationConstraint, setRotationConstraintDirection, setRotationConstraintType, setTranslationConstraint, setTranslationConstraintDirection, setTranslationConstraintType, translationConstraintDirection, translationConstraintType
public Vec constrainTranslation(Vec translation, Frame frame)
AxisPlaneConstraint.translationConstraintType()
, constrain
translation to
be along an axis or limited to a plane defined in the world coordinate system by
AxisPlaneConstraint.translationConstraintDirection()
.constrainTranslation
in class Constraint
public Rotation constrainRotation(Rotation rotation, Frame frame)
AxisPlaneConstraint.rotationConstraintType()
is of type AXIS, constrain rotation
to
be a rotation around an axis whose direction is defined in the Frame world coordinate
system by AxisPlaneConstraint.rotationConstraintDirection()
.constrainRotation
in class Constraint
Processing Library proscene by Jean Pierre Charalambos. (c) 2014-2017 National University of Colombia