diff options
author | Benoit Bolsee <benoit.bolsee@online.be> | 2009-10-14 22:51:00 +0400 |
---|---|---|
committer | Benoit Bolsee <benoit.bolsee@online.be> | 2009-10-14 22:51:00 +0400 |
commit | 96d2dc7d090975687e5b99495fcc1e5725e75120 (patch) | |
tree | 2f7d1527f992b802c25a237c7ed19a3eb3c54afa /source/blender/makesdna/DNA_constraint_types.h | |
parent | f579fe5681873749077b39a67f79ba6f7544d784 (diff) |
iTaSC: Selection of constrained axis for CopyPose constraint
This commit implements more of the CopyPose capabilities in
Blender. It is now possible to select which axis will be
constrained in position and orientation to obtain
interesting effects. Another option selects if the axis
are relative to the end effector or to the target.
Unlocking a position axis means that the coordinate along
this axis is not constrained and can take any value.
Unlocking the Y axis of the End Effector produces an
'aiming' effect: the end effector is oriented towards
the target but without stretching.
Unlocking a rotation axis means that the end effector can
freely rotation along that axis. Unlocking the Y axis
produces a 'tangent' effect: the end effector aligns with
the Y axis of the target but can rotate along that axis.
A 'floor' effect is possible if the position Z axis of the
target is unlocked. More effects are possible an can be
combined.
Diffstat (limited to 'source/blender/makesdna/DNA_constraint_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_constraint_types.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_constraint_types.h b/source/blender/makesdna/DNA_constraint_types.h index fccec7a556f..7232042c876 100644 --- a/source/blender/makesdna/DNA_constraint_types.h +++ b/source/blender/makesdna/DNA_constraint_types.h @@ -502,6 +502,16 @@ typedef enum B_CONSTRAINTCHANNEL_FLAG { #define CONSTRAINT_IK_POS 32 #define CONSTRAINT_IK_SETANGLE 64 #define CONSTRAINT_IK_GETANGLE 128 + /* limit axis */ +#define CONSTRAINT_IK_NO_POS_X 256 +#define CONSTRAINT_IK_NO_POS_Y 512 +#define CONSTRAINT_IK_NO_POS_Z 1024 +#define CONSTRAINT_IK_NO_ROT_X 2048 +#define CONSTRAINT_IK_NO_ROT_Y 4096 +#define CONSTRAINT_IK_NO_ROT_Z 8192 + /* axis relative to target */ +#define CONSTRAINT_IK_TARGETAXIS 16384 + /* MinMax (floor) flags */ #define MINMAX_STICKY 0x01 |