Results 1 to 4 of 4

Thread: DirectX Matrix quiestion...

  1. #1
    Legendary Member NecroDOME's Avatar
    Join Date
    Mar 2004
    Location
    The Netherlands, Eindhoven
    Posts
    1,059

    DirectX Matrix quiestion...

    I have a function
    [pascal]
    SetMatrix(Position, Rotation, Scale : TD3DVector): TD3DMatrix;
    [/pascal]

    but how can i get back from TD3DMatrix to Position, Scale and Rotation?


    ps. I need this cause Newton Game Dynamics messes up my matrix ...
    NecroSOFT - End of line -

  2. #2

    DirectX Matrix quiestion...

    The position, or translation in 3D terminology, is the last row of the matrix.

    The rotation and scale are a bit more difficult because they get combined in the matrix, so extracting them can be tough. I'll see what I can find.

  3. #3
    There are only 10 types of people in this world; those who understand binary and those who don't.

  4. #4
    Legendary Member NecroDOME's Avatar
    Join Date
    Mar 2004
    Location
    The Netherlands, Eindhoven
    Posts
    1,059

    DirectX Matrix quiestion...

    Thnxz@Clootie,

    it explains a lot ... im gonna try to make a code out of it
    NecroSOFT - End of line -

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
  •