diff options
author | Erwin Coumans <blender@erwincoumans.com> | 2006-11-30 03:19:27 +0300 |
---|---|---|
committer | Erwin Coumans <blender@erwincoumans.com> | 2006-11-30 03:19:27 +0300 |
commit | 2572b9f72c8f10b01de949e59b481ac5a587aca4 (patch) | |
tree | 8500180c02ce6f7e5ace9c1d62f408d62c8be7f2 /source/blender/makesdna/DNA_constraint_types.h | |
parent | 99d66e1d5e8c9d32c6289cd453ebec3f708aa249 (diff) |
Reserved some Bullet 2.x constraint data.
Although we will delay the main Rigid Body user interface after 2.43 release early 2007, I need some constraint data/UI to make progress with COLLADA Physics.
Added RigidBody constraint UI
LR_ALTKEY+LR_CTRLKEY+LR_SHIFTKEY+ P will bake rigidbody
Contribution by RCRuiz, Ramon Carlos.
Diffstat (limited to 'source/blender/makesdna/DNA_constraint_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_constraint_types.h | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_constraint_types.h b/source/blender/makesdna/DNA_constraint_types.h index fcfbe5790dc..5e220e40fed 100644 --- a/source/blender/makesdna/DNA_constraint_types.h +++ b/source/blender/makesdna/DNA_constraint_types.h @@ -194,6 +194,26 @@ typedef struct bSizeLimitConstraint{ short pad1; } bSizeLimitConstraint; +/* Rigid Body constraint */ +typedef struct bRigidBodyJointConstraint{ + Object *tar; + Object *child; + int type; + float pivX; + float pivY; + float pivZ; + float axX; + float axY; + float axZ; + float minLimit[6]; + float maxLimit[6]; + float extraFz; + short flag; + short pad; + short pad1; + short pad2; +} bRigidBodyJointConstraint; + /* bConstraint.type */ #define CONSTRAINT_TYPE_NULL 0 #define CONSTRAINT_TYPE_CHILDOF 1 /* Unimplemented */ @@ -212,7 +232,7 @@ typedef struct bSizeLimitConstraint{ #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 */ - +#define CONSTRAINT_TYPE_RIGIDBODYJOINT 17 /* rigidbody constraint */ /* bConstraint.flag */ /* expand for UI */ @@ -298,5 +318,10 @@ typedef struct bSizeLimitConstraint{ #define LIMIT_NOPARENT 0x01 +#define CONSTRAINT_RB_BALL 1 +#define CONSTRAINT_RB_HINGE 2 +#define CONSTRAINT_RB_GENERIC6DOF 3 +#define CONSTRAINT_RB_VEHICLE 11 + #endif |