Skip to content

Commit

Permalink
Fix #4330 (#4401)
Browse files Browse the repository at this point in the history
  • Loading branch information
intrigus authored and Tom-Ski committed Nov 6, 2016
1 parent 8cffd36 commit 9ebcfd8
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 4 deletions.
Expand Up @@ -31,11 +31,22 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_physics_box2d_joints_WeldJoint_jniG

}

JNIEXPORT jfloat JNICALL Java_com_badlogic_gdx_physics_box2d_joints_WeldJoint_jniGetFrequency(JNIEnv* env, jobject object, jlong addr) {
JNIEXPORT jfloat JNICALL Java_com_badlogic_gdx_physics_box2d_joints_WeldJoint_jniGetReferenceAngle(JNIEnv* env, jobject object, jlong addr) {


//@line:67

b2WeldJoint* joint = (b2WeldJoint*)addr;
return joint->GetReferenceAngle();


}

JNIEXPORT jfloat JNICALL Java_com_badlogic_gdx_physics_box2d_joints_WeldJoint_jniGetFrequency(JNIEnv* env, jobject object, jlong addr) {


//@line:76

b2WeldJoint* joint = (b2WeldJoint*)addr;
return joint->GetFrequency();

Expand All @@ -45,7 +56,7 @@ JNIEXPORT jfloat JNICALL Java_com_badlogic_gdx_physics_box2d_joints_WeldJoint_jn
JNIEXPORT void JNICALL Java_com_badlogic_gdx_physics_box2d_joints_WeldJoint_jniSetFrequency(JNIEnv* env, jobject object, jlong addr, jfloat hz) {


//@line:76
//@line:85

b2WeldJoint* joint = (b2WeldJoint*)addr;
joint->SetFrequency(hz);
Expand All @@ -56,7 +67,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_physics_box2d_joints_WeldJoint_jniS
JNIEXPORT jfloat JNICALL Java_com_badlogic_gdx_physics_box2d_joints_WeldJoint_jniGetDampingRatio(JNIEnv* env, jobject object, jlong addr) {


//@line:85
//@line:94

b2WeldJoint* joint = (b2WeldJoint*)addr;
return joint->GetDampingRatio();
Expand All @@ -67,7 +78,7 @@ JNIEXPORT jfloat JNICALL Java_com_badlogic_gdx_physics_box2d_joints_WeldJoint_jn
JNIEXPORT void JNICALL Java_com_badlogic_gdx_physics_box2d_joints_WeldJoint_jniSetDampingRatio(JNIEnv* env, jobject object, jlong addr, jfloat ratio) {


//@line:94
//@line:103

b2WeldJoint* joint = (b2WeldJoint*)addr;
joint->SetDampingRatio(ratio);
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Expand Up @@ -59,6 +59,15 @@ public Vector2 getLocalAnchorB () {
anchor[0] = joint->GetLocalAnchorB().x;
anchor[1] = joint->GetLocalAnchorB().y;
*/

public float getReferenceAngle () {
return jniGetReferenceAngle(addr);
}

private native float jniGetReferenceAngle (long addr); /*
b2WeldJoint* joint = (b2WeldJoint*)addr;
return joint->GetReferenceAngle();
*/

public float getFrequency () {
return jniGetFrequency(addr);
Expand Down

0 comments on commit 9ebcfd8

Please sign in to comment.