ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperLicht
forum topic indicator Rotation matrix
person icon
codemastermike
Registered User
Quote
2011-10-07 13:36:41

is there a way to manually set the Rotation matrix for a 3d object?

I need to be able to set the Rotation matrix manually. Because
Im using a physics lib, and the only way to get the rotation from the physics is through a rotation matrix. The physics lib returns a 4x4 glmatrix.

person icon
niko
Moderator
Quote
2011-10-07 15:54:03

There are multiple ways of doing this. An idea would be to set the matrix values you get from the library into a CL3D.Matrix4 object (for example by calling setByIndex()) and then calling getRotationDegrees() of the matrix. Use this as rotation then.

person icon
codemastermike
Registered User
Quote
2011-10-10 08:28:16

Yes, that works really nicely, thanks again Niko!


Create reply:










 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






Copyright© Ambiera e.U. all rights reserved.
Contact | Imprint | Products | Privacy Policy | Terms and Conditions |