diff --git a/engine/src/bullet/native/com_jme3_bullet_joints_SixDofJoint.cpp b/engine/src/bullet/native/com_jme3_bullet_joints_SixDofJoint.cpp index ad936ae8b..51a76c0ae 100644 --- a/engine/src/bullet/native/com_jme3_bullet_joints_SixDofJoint.cpp +++ b/engine/src/bullet/native/com_jme3_bullet_joints_SixDofJoint.cpp @@ -85,7 +85,7 @@ extern "C" { btGeneric6DofConstraint* joint = (btGeneric6DofConstraint*) jointId; btVector3* vec = &btVector3(); jmeBulletUtil::convert(env, vector, vec); - joint->setLinearUpperLimit(*vec); + joint->setLinearLowerLimit(*vec); } /* @@ -98,7 +98,7 @@ extern "C" { btGeneric6DofConstraint* joint = (btGeneric6DofConstraint*) jointId; btVector3* vec = &btVector3(); jmeBulletUtil::convert(env, vector, vec); - joint->setLinearUpperLimit(*vec); + joint->setAngularUpperLimit(*vec); } /*