Results 1 to 4 of 4

Thread: Bone absolute position

  1. #1

    Bone absolute position

    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 ).

  2. #2

    Re: Bone absolute position

    Hm, doesn't every bone have its own AbsoluteMatrix property?

  3. #3

    Re: Bone absolute position

    Mmm no. They have "global matrix", but I can't figure out how to get the coordinates from there.

    Thanks for the reply!

  4. #4

    Re: Bone absolute position

    You want to get position? Try:
    [code=delphi]
    var
    pos: TVector;
    begin
    pos := bone.globalmatrix[3];
    end;
    [/code]
    Maybe this will work.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •