Blender Git Commit Log

Git Commits -> Revision ae3cf92

Revision ae3cf92 by Joshua Leung (master)
October 30, 2009, 06:33 (GMT)
New Track To Constraint: "Damped"

This is effectively a C-port of Nathan Vegdahl's "No Twist" TrackTo PyConstraint, and has been added as a separate type of constraint to be consistent with the existing constraints (Locked Track, and Track To).

In general, this works considerably better than the existing "Track To" constraint, since it works by determining the smallest rotation necessary to get the current orientation of the owner to an orientation which would be tracking the target. It is also a much more straightforward approach than the weird old method the old Track To uses.

I've made a few tweaks to the code to deal with the (hopefully rare) cases where the target and the constrained are coincident. These don't appear to cause too much trouble in general.

TODO:
- Probably the naming of the constraints will change, to better convey their purposes. Naming suggestions welcome.

Commit Details:

Full Hash: ae3cf92491be73f353b278f1632a68990d0e44d9
SVN Revision: 24174
Parent Commit: fe68d26
Lines Changed: +189, -13

6 Modified Paths:

/release/scripts/ui/buttons_object_constraint.py (+7, -0) (Diff)
/source/blender/blenkernel/intern/constraint.c (+127, -9) (Diff)
/source/blender/blenlib/intern/arithb.c (+1, -0) (Diff)
/source/blender/makesdna/DNA_constraint_types.h (+11, -2) (Diff)
/source/blender/makesrna/intern/rna_constraint.c (+42, -2) (Diff)
/source/blender/makesrna/RNA_access.h (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021