How do I get the original angle relative to a bone's parent
Posted: Thu Apr 23, 2009 3:45 pm
How do I do, in Lua, to get the bone's original angle, relative to its parent bone?
For instance, if I have boneA and boneB, being boneB a child of boneA, and being boneB originaly rotated 30 degrees (that is, rotate 30 degrees relative to boneA, in frame 0).
I am looking for a way to request that angle (30 degrees, or its equivalent in radians), from the Lua API.
The script I am working on (based on HeyVern's original script and later modified by Genete) is working in almost every aspect I need, except that it only works 100% when the original angle is 0 degrees (0 radians).
Cheers.
For instance, if I have boneA and boneB, being boneB a child of boneA, and being boneB originaly rotated 30 degrees (that is, rotate 30 degrees relative to boneA, in frame 0).
I am looking for a way to request that angle (30 degrees, or its equivalent in radians), from the Lua API.
The script I am working on (based on HeyVern's original script and later modified by Genete) is working in almost every aspect I need, except that it only works 100% when the original angle is 0 degrees (0 radians).
Cheers.