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 ...
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 -
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.
There are only 10 types of people in this world; those who understand binary and those who don't.
Thnxz@Clootie,
it explains a lot ... im gonna try to make a code out of it
NecroSOFT - End of line -
Bookmarks