About Store Forum Documentation Contact



Post Reply 
Animated bone position in local space
Author Message
Pixel Perfect Offline
Member

Post: #1
Animated bone position in local space
Am I right in assuming that after calling the animate command the following would give me the position of a given bone in local space:

Code:
cskel.findBone(8"BoneName").matrix().pos;

[EDIT] Seems to be working ok so I guess it's right.
(This post was last modified: 05-29-2013 08:19 AM by Pixel Perfect.)
05-28-2013 09:29 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Animated bone position in local space
Hello,

CSkelBone matrix is the transformation applied to SkelBone

SkelBone * CSkelBone.matrix = worldSpaceFinalBone
05-31-2013 01:21 PM
Find all posts by this user Quote this message in a reply
Pixel Perfect Offline
Member

Post: #3
RE: Animated bone position in local space
Thanks. What I'm actually doing here is measuring the relative displacement of bones in the animated model's local space. Applying the animation and the updateMatrix command to the cskel and then returning the cskel's matrix position appears to return the right values. For what I'm doing I prefer to work in local space rather than world space and apply the results as a transformation later.
06-01-2013 02:50 PM
Find all posts by this user Quote this message in a reply
Post Reply