FollowCurveKinematics

From Odwiki

Jump to: navigation, search

Bones will attempt to lie on a curve. Orientation of the bones can be controlled using a Normal PointAttribute on the curve.


Stretching bones to always fit the curve

If you want your bones to stretch to the length of your curve during animation, put the following expression in the Length field of each of your Bones in the chain (this is for 8 even divisions):

arclen( chs(chs("solver")+"/curvepath")+"/__display_sop__", 0 , 0, 1 )/8

This relies on the fact that you've already set the bones to Follow Curve kinematics for a curve. It gets the name of the curve geometry from the solver, takes its length and then divides it by the number of bones in the chain (you must supply this number).

© 2009 od[force].net | advertise