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

Typically: "How do I... ", "How can I... " questions
Post Reply
Furkan Coskuner
Posts: 9
Joined: 15 Jun 2022, 09:28

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

Post 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

coppelia
Site Admin
Posts: 10339
Joined: 14 Dec 2012, 00:25

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

Post by coppelia »

Hello,

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

Cheers

Post Reply