From 0cb8d3ccbf241fb033417643abc304f64b41611d Mon Sep 17 00:00:00 2001 From: m4nu3lf Date: Sun, 17 Sep 2017 01:48:46 +0100 Subject: [PATCH] Fix wrong index in get_euler_xyz and wrong get_euler in G6DF Joint --- servers/physics/joints/generic_6dof_joint_sw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/physics/joints/generic_6dof_joint_sw.cpp b/servers/physics/joints/generic_6dof_joint_sw.cpp index 551adc7d2ec..1e323be36cc 100644 --- a/servers/physics/joints/generic_6dof_joint_sw.cpp +++ b/servers/physics/joints/generic_6dof_joint_sw.cpp @@ -221,7 +221,7 @@ Generic6DOFJointSW::Generic6DOFJointSW(BodySW *rbA, BodySW *rbB, const Transform void Generic6DOFJointSW::calculateAngleInfo() { Basis relative_frame = m_calculatedTransformB.basis.inverse() * m_calculatedTransformA.basis; - m_calculatedAxisAngleDiff = relative_frame.get_euler(); + m_calculatedAxisAngleDiff = relative_frame.get_euler_xyz(); // in euler angle mode we do not actually constrain the angular velocity // along the axes axis[0] and axis[2] (although we do use axis[1]) :