PDA

View Full Version : Bone absolute position



soaliar
24-03-2010, 07:35 PM
Hi. Is there a way to know the absolute position of an actor's bone?

I'm trying to make a game with Lazarus and GLScene using SMD models with skeletal animation. What I'm trying to find out is a way to know the position of a single bone in the scene.

Thanks. :)

(Sorry about my english :( ).

Brainer
24-03-2010, 08:29 PM
Hm, doesn't every bone have its own AbsoluteMatrix property? ;)

soaliar
24-03-2010, 08:56 PM
Mmm no. They have "global matrix", but I can't figure out how to get the coordinates from there. :(

Thanks for the reply! :)

Brainer
25-03-2010, 03:33 PM
You want to get position? Try:


var
pos: TVector;
begin
pos := bone.globalmatrix[3];
end;

Maybe this will work. :)