Easy3D 2.6.1
|
An AxisPlaneConstraint defined in the Frame local coordinate system. More...
#include <easy3d/renderer/constraint.h>
Public Member Functions | |
~LocalConstraint () override=default | |
void | constrainTranslation (vec3 &translation, Frame *const frame) override |
void | constrainRotation (quat &rotation, Frame *const frame) override |
![]() | |
AxisPlaneConstraint () | |
~AxisPlaneConstraint () override=default | |
void | setTranslationConstraint (Type type, const vec3 &direction) |
void | setTranslationConstraintType (Type type) |
void | setTranslationConstraintDirection (const vec3 &direction) |
Type | translationConstraintType () const |
vec3 | translationConstraintDirection () const |
void | setRotationConstraint (Type type, const vec3 &direction) |
void | setRotationConstraintType (Type type) |
void | setRotationConstraintDirection (const vec3 &direction) |
Type | rotationConstraintType () const |
vec3 | rotationConstraintDirection () const |
![]() | |
virtual | ~Constraint ()=default |
Additional Inherited Members | |
![]() | |
enum | Type { FREE , AXIS , PLANE , FORBIDDEN } |
An AxisPlaneConstraint defined in the Frame local coordinate system.
The translationConstraintDirection() and rotationConstraintDirection() are expressed in the Frame local coordinate system (see Frame::referenceFrame()).
See the constrainedFrame example for an illustration.
|
overridedefault |
Virtual destructor. Empty.
When rotationConstraintType() is AxisPlaneConstraint::AXIS, constrain rotation
to be a rotation around an axis whose direction is defined in the Frame local coordinate system by rotationConstraintDirection().
Reimplemented from AxisPlaneConstraint.
Depending on translationConstraintType(), constrain translation
to be along an axis or limited to a plane defined in the Frame local coordinate system by translationConstraintDirection().
Reimplemented from AxisPlaneConstraint.