diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2006-11-07 02:51:37 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2006-11-07 02:51:37 +0300 |
commit | b48c514db87d360ddfcadfcde582c0cae9344d6c (patch) | |
tree | edd7df52b4211a4a8053733d43d49ea1b2aae915 /source/blender/makesdna/DNA_constraint_types.h | |
parent | 10a4b1ad8ba1aeb951be173e8f5415f8b75e329e (diff) |
Added an option in the IK constraint to disable stretching, useful
in rigs with layered IK constraints. Also removed the tolerance
setting, this value wasn't used in the solver anymore.
Diffstat (limited to 'source/blender/makesdna/DNA_constraint_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_constraint_types.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/makesdna/DNA_constraint_types.h b/source/blender/makesdna/DNA_constraint_types.h index 8b8f8ae0f72..aa9625bd31b 100644 --- a/source/blender/makesdna/DNA_constraint_types.h +++ b/source/blender/makesdna/DNA_constraint_types.h @@ -62,16 +62,15 @@ typedef struct bConstraint{ /* Single-target subobject constraints */ typedef struct bKinematicConstraint{ Object *tar; - float tolerance; /* Acceptable distance from target */ short iterations; /* Maximum number of iterations to try */ short flag; /* Like CONSTRAINT_IK_TIP */ - int rootbone, pad; /* index to rootbone, if zero go all the way to mother bone */ + int rootbone; /* index to rootbone, if zero go all the way to mother bone */ char subtarget[32]; /* String to specify sub-object target */ float weight; /* Weight of goal in IK tree */ float orientweight; /* Amount of rotation a target applies on chain */ float grabtarget[3]; /* for target-less IK */ - float pad2; + int pad; } bKinematicConstraint; typedef struct bTrackToConstraint{ @@ -277,6 +276,8 @@ typedef struct bSizeLimitConstraint{ #define CONSTRAINT_IK_ROT 2 #define CONSTRAINT_IK_AUTO 4 #define CONSTRAINT_IK_TEMP 8 +#define CONSTRAINT_IK_STRETCH 16 +#define CONSTRAINT_IK_POS 32 /* MinMax (floor) flags */ #define MINMAX_STICKY 0x01 |