getting bone base and tip positions from a transform matrix?

Posted by ddos on Game Development See other posts from Game Development or by ddos
Published on 2012-07-09T19:14:13Z Indexed on 2012/07/09 21:24 UTC
Read the original article Hit count: 306

Filed under:
|
|
|

I need this for a Blender3d script, but you don't really need to know Blender to answer this.

I need to get bone head and tip positions from a transform matrix read from a file. The position of base is the location part of the matrix, length of the bone (distance from base to tip) is the scale, position of the tip is calculated from the scale (distance from bone base) and rotation part of the matrix.

So how to calculate these?

bone.base([x,y,z]) # x,y,z - floats
bone.tip([x,y,z])

© Game Development or respective owner

Related posts about 3d

Related posts about matrix