diff options
author | Martin Poirier <theeth@yahoo.com> | 2006-12-03 21:38:51 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2006-12-03 21:38:51 +0300 |
commit | 4a2eceff20c0dc3d77de2a20a5fc0c15296ef453 (patch) | |
tree | 1ddce4ca9c08adaf20a7696ef242ee9b84dafbd2 /source/blender/makesdna/DNA_constraint_types.h | |
parent | 953cd28b677590f30f1ae42e7210639f2cd4b6bc (diff) |
=== [ #5094 ] TrackTo Constraint with an animatable "up" direction ===
Patch by Matthew Plough: This adds an option to the Track To constraint to use the target's Z axis for Up axis reference instead of the global Z axis.
Off by default for backward compat.
Diffstat (limited to 'source/blender/makesdna/DNA_constraint_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_constraint_types.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_constraint_types.h b/source/blender/makesdna/DNA_constraint_types.h index ccc5f0c48e4..37aa3938ab2 100644 --- a/source/blender/makesdna/DNA_constraint_types.h +++ b/source/blender/makesdna/DNA_constraint_types.h @@ -77,6 +77,8 @@ typedef struct bTrackToConstraint{ Object *tar; int reserved1; /* I'll be using reserved1 and reserved2 as Track and Up flags, not sure if that's what they were intented for anyway. Not sure either if it would create backward incompatibility if I were to rename them. - theeth*/ int reserved2; + int flags; + int pad; char subtarget[32]; } bTrackToConstraint; @@ -282,6 +284,9 @@ typedef struct bRigidBodyJointConstraint{ #define TRACK_nY 0x04 #define TRACK_nZ 0x05 +/* bTrackToConstraint->flags */ +#define TARGET_Z_UP 0x01 + #define VOLUME_XZ 0x00 #define VOLUME_X 0x01 #define VOLUME_Z 0x02 |