Permalink
Browse files

added missing setMaxLength wrapper for b2RopeJoint

  • Loading branch information...
1 parent 61e31b8 commit cb849d0cac22c2a94f1eec9a9ee38a7aa3b49629 @ttencate committed Oct 17, 2012
@@ -14,3 +14,14 @@
}
+JNIEXPORT jfloat JNICALL Java_com_badlogic_gdx_physics_box2d_joints_RopeJoint_jniSetMaxLength(JNIEnv* env, jobject object, jlong addr, jfloat length) {
+
+
+//@line:51
+
+ b2RopeJoint* rope = (b2RopeJoint*)addr;
+ rope->SetMaxLength(length);
+
+
+}
+

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -42,4 +42,14 @@ public float getMaxLength () {
b2RopeJoint* rope = (b2RopeJoint*)addr;
return rope->GetMaxLength();
*/
-}
+
+ /** Set the maximum length of the rope. */
+ public void setMaxLength (float length) {
+ jniSetMaxLength(addr, length);
+ }
+
+ private native float jniSetMaxLength (long addr, float length); /*
+ b2RopeJoint* rope = (b2RopeJoint*)addr;
+ rope->SetMaxLength(length);
+ */
+}

0 comments on commit cb849d0

Please sign in to comment.