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
How can I get to rotation vector(1*3) inside transformation matrix?
-
- Posts: 9
- Joined: 15 Jun 2022, 09:28
Re: How can I get to rotation vector(1*3) inside transformation matrix?
Hello,
you can use sim.getRotationAxis for that. The first matrix should be the identity transformation in that case.
Cheers
you can use sim.getRotationAxis for that. The first matrix should be the identity transformation in that case.
Cheers