Blender Git Commit Log
Git Commits -> Revision 4ebc634
Revision 4ebc634 by Joshua Leung (master) May 27, 2010, 10:50 (GMT) |
== Pivot Constraint == This constraint allows an object or bone to have their rotations applied as if their origin/pivot-point was located elsewhere. The most obvious uses include foot-roll, see-saws, but could also include more complicated rolling-box examples. == Usage Examples == === Foot Roll === 1. Add 'Pivot' Constraint to the bone without any target. 2. Set the 'Y' value of the offset to the length of the bone. Usually this should be negative (if you rig with feet facing 'forwards' along -Y axis). This gives you a pivot point relative to the bone's (preconstraint) location, which should be at the tip of the bone here. Disabling the 'Use Relative Offset' would make this offset be relative to 0,0,0 instead of to the owner/bone-head. 3. Ensure that the 'Pivot When' setting is set to '-X Rot', (default) which means that the pivot will only used when the rotation on the X-Axis is negative to get tip-toe 'roll'. === See Saw === 1. Add a 'Pivot' constraint too see-saw plank object, this time with a target that you wish to have as the pivot-point. It's possible to do this without too (as before), but is less intuitive. 2. Optionally, if you want the plank slightly raised, set the z-offset value, which should make the pivot-point used to be relative to the target with the z-offset applied. 3. Ensure that 'Pivot When' is set to 'Always', which means that the pivot will always be used, irrespective of the rotation. == Notes == * The 'Pivot When' setting has been integrated in the constraint, since this is something that will often be required for these setups. Having to set up additional drivers to drive the constraint to do this kindof beats the purpose of providing this. * The 'Offset' functionality is probably not presented as clearly as it could be. We may need to go over this again. * For foot-roll - if any scaling of the foot is required, simply set up a driver on the y-offset to make this dynamically respond to the "scale" RNA property of the bones (don't use the "Transform Channel" vartype since that won't work correct here). However, this shouldn't be common enough to warrant special treatment. |
Commit Details:
Full Hash: 4ebc634168e0349c07c74fdf61defaad05db70f9
SVN Revision: 29024
Parent Commit: 135f8be
Lines Changed: +257, -6
6 Modified Paths:
/release/scripts/ui/properties_object_constraint.py (+17, -1) (Diff)
/source/blender/blenkernel/intern/constraint.c (+113, -0) (Diff)
/source/blender/editors/object/object_constraint.c (+17, -0) (Diff)
/source/blender/makesdna/DNA_constraint_types.h (+49, -5) (Diff)
/source/blender/makesrna/intern/rna_constraint.c (+60, -0) (Diff)
/source/blender/makesrna/RNA_access.h (+1, -0) (Diff)
/source/blender/blenkernel/intern/constraint.c (+113, -0) (Diff)
/source/blender/editors/object/object_constraint.c (+17, -0) (Diff)
/source/blender/makesdna/DNA_constraint_types.h (+49, -5) (Diff)
/source/blender/makesrna/intern/rna_constraint.c (+60, -0) (Diff)
/source/blender/makesrna/RNA_access.h (+1, -0) (Diff)