www.jpct.net

Bones - Skeletal and Pose Animations for jPCT/jPCT-AE => Bones => Topic started by: ani.tumanyan on April 03, 2013, 11:30:16 pm

Title: Bone length
Post by: ani.tumanyan on April 03, 2013, 11:30:16 pm
Hi raft,

Is there a way to get the length of different bones in Bones API?


Ani
Title: Re: Bone length
Post by: raft on April 04, 2013, 07:17:09 am
have a look at chase's skeleton helper (http://www.jpct.net/forum2/index.php/topic,3300.0.html). it has a getBoneDirection method, which you can modify and use. ie: do not normalize the result vector and calculate length of it.
Title: Re: Bone length
Post by: ani.tumanyan on April 04, 2013, 09:35:12 pm
Thanks raft so much! This is wonderful :).

Another question popped up. When I'm galling getTranslation() function, in which units are those numbers? Are they meters, centimeters or even worse pixels?

Thanks again for your help!
Title: Re: Bone length
Post by: raft on April 04, 2013, 10:00:09 pm
Another question popped up. When I'm galling getTranslation() function, in which units are those numbers? Are they meters, centimeters or even worse pixels
neither one. they are in world units. that means they are in whatever size they are modelled in 3d editor