Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-09-07 16:59:16 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-09-07 16:59:16 +0400
commite492fad1308d5072a34abb3a90790a1106eea32b (patch)
tree808a4d3f78ff6051a44ccecfb927d2d6c46c9d60 /source/blender/makesdna/DNA_constraint_types.h
parent3da3c366442dce1b80e04fd753ffd50545787859 (diff)
shrink-wrap constraint, improve and remove some limitations.
- ability to change the space the axis is projected in (so you can choose worldspace or -space, was always local-space before). - support projecting on a negative axis, without this some very simple clamping is not possible if the direction happened not to be positive. - add distance limit (same as modifier), without this single meshes surrounding an object would make the constraint impossible to use in some cases (it would snap to the wrong side). note: this removes the ability to project on multiple axes at once but this option only added up directions and didnt project on multiple axes as you might expect.
Diffstat (limited to 'source/blender/makesdna/DNA_constraint_types.h')
-rw-r--r--source/blender/makesdna/DNA_constraint_types.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_constraint_types.h b/source/blender/makesdna/DNA_constraint_types.h
index f1b7a7c3cc3..29e49a970d8 100644
--- a/source/blender/makesdna/DNA_constraint_types.h
+++ b/source/blender/makesdna/DNA_constraint_types.h
@@ -407,8 +407,10 @@ typedef struct bShrinkwrapConstraint {
struct Object *target;
float dist; /* distance to kept from target */
short shrinkType; /* shrink type (look on MOD shrinkwrap for values) */
- char projAxis; /* axis to project over UP_X, UP_Y, UP_Z */
- char pad[9];
+ char projAxis; /* axis to project/constrain */
+ char projAxisSpace; /* space to project axis in */
+ float projLimit; /* distance to search */
+ char pad[4];
} bShrinkwrapConstraint;
/* Follow Track constraints */