Skip to content

mjData.xquat vs mjData.xmat #343

Discussion options

You must be logged in to vote

The former is a quaternion, the latter is a rotation matrix. They represent the same thing (body orientation) in different ways. You can use mju_quat2Mat and mju_mat2Quat to convert between the two representations.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rohit-kumar-j
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants