From 1dba65e296276ed78222f19a127c90773a1f0416 Mon Sep 17 00:00:00 2001 From: Martin Poirier Date: Wed, 7 Sep 2005 00:11:39 +0000 Subject: Roland Hess' Floor Constraint patch: https://projects.blender.org/tracker/?func=detail&aid=2993&group_id=9&atid=127 Minor modifications to simplify the code in evaluate_constraint. The "Stick" feature will need more work as it gives bad results when skipping frames, jumping around on the timeline and when going backward in time. Suggestion: Would be nice if it could use the local space too, not just global space planes. --- source/blender/makesdna/DNA_constraint_types.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'source/blender/makesdna/DNA_constraint_types.h') diff --git a/source/blender/makesdna/DNA_constraint_types.h b/source/blender/makesdna/DNA_constraint_types.h index 70e1bc3f3bc..3b30613015a 100644 --- a/source/blender/makesdna/DNA_constraint_types.h +++ b/source/blender/makesdna/DNA_constraint_types.h @@ -93,6 +93,16 @@ typedef struct bLocateLikeConstraint{ char subtarget[32]; } bLocateLikeConstraint; +typedef struct bMinMaxConstraint{ + Object *tar; + int minmaxflag; + float offset; + short sticky; + short stuck; + float cache[3]; + char subtarget[32]; +} bMinMaxConstraint; + typedef struct bActionConstraint{ Object *tar; short type; @@ -168,6 +178,7 @@ typedef struct bStretchToConstraint{ #define CONSTRAINT_TYPE_LOCKTRACK 13 /* New Tracking constraint that locks an axis in place - theeth */ #define CONSTRAINT_TYPE_DISTANCELIMIT 14 #define CONSTRAINT_TYPE_STRETCHTO 15 /* claiming this to be mine :) is in tuhopuu bjornmose */ +#define CONSTRAINT_TYPE_MINMAX 16 /* floor constraint */ /* bConstraint.flag */ -- cgit v1.2.3