diff --git a/unity/Runtime/Components/Joints/MjSlideJoint.cs b/unity/Runtime/Components/Joints/MjSlideJoint.cs index 2b5da313..fa63c6b2 100644 --- a/unity/Runtime/Components/Joints/MjSlideJoint.cs +++ b/unity/Runtime/Components/Joints/MjSlideJoint.cs @@ -43,8 +43,7 @@ namespace Mujoco { } public override unsafe void OnSyncState(MujocoLib.mjData_* data) { - var qpos = (float)data->qpos[QposAddress]; - Configuration = (qpos % (2 * Mathf.PI)) * Mathf.Rad2Deg; + Configuration = (float)data->qpos[QposAddress]; Velocity = (float)data->qvel[DofAddress]; }