Page 1 of 1

How can I get to rotation vector(1*3) inside transformation matrix?

Posted: 15 Aug 2022, 08:59
by Furkan Coskuner
Hello
I use sim.getObjectMatrix in lua. This code return transformation matrix(4*3).I know to rotation matrix (3*3)inside to transformaton matrix.However I need to rotation vector(1*3).
How can I get to rotation vector(1*3) inside transformation matrix?
Which code use for this problem in lua?
Cheers

Re: How can I get to rotation vector(1*3) inside transformation matrix?

Posted: 16 Aug 2022, 06:49
by coppelia
Hello,

you can use sim.getRotationAxis for that. The first matrix should be the identity transformation in that case.

Cheers