13ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames#include <com.badlogic.gdx.physics.box2d.joints.PrismaticJoint.h>
23ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
355c190300cc0c631587320026896f49ac540317fbadlogic//@line:28
43ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
53ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames#include <Box2D/Box2D.h>
655c190300cc0c631587320026896f49ac540317fbadlogic	 JNIEXPORT void JNICALL Java_com_badlogic_gdx_physics_box2d_joints_PrismaticJoint_jniGetLocalAnchorA(JNIEnv* env, jobject object, jlong addr, jfloatArray obj_anchor) {
755c190300cc0c631587320026896f49ac540317fbadlogic	float* anchor = (float*)env->GetPrimitiveArrayCritical(obj_anchor, 0);
83ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
93ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
1066edbb1c8f8791b65a6b7f324951a845518b3cf6Justin Shapcott//@line:47
1155c190300cc0c631587320026896f49ac540317fbadlogic
1255c190300cc0c631587320026896f49ac540317fbadlogic		b2PrismaticJoint* joint = (b2PrismaticJoint*)addr;
1355c190300cc0c631587320026896f49ac540317fbadlogic		anchor[0] = joint->GetLocalAnchorA().x;
1455c190300cc0c631587320026896f49ac540317fbadlogic		anchor[1] = joint->GetLocalAnchorA().y;
1555c190300cc0c631587320026896f49ac540317fbadlogic
1655c190300cc0c631587320026896f49ac540317fbadlogic	env->ReleasePrimitiveArrayCritical(obj_anchor, anchor, 0);
1755c190300cc0c631587320026896f49ac540317fbadlogic
1855c190300cc0c631587320026896f49ac540317fbadlogic}
1955c190300cc0c631587320026896f49ac540317fbadlogic
2055c190300cc0c631587320026896f49ac540317fbadlogicJNIEXPORT void JNICALL Java_com_badlogic_gdx_physics_box2d_joints_PrismaticJoint_jniGetLocalAnchorB(JNIEnv* env, jobject object, jlong addr, jfloatArray obj_anchor) {
2155c190300cc0c631587320026896f49ac540317fbadlogic	float* anchor = (float*)env->GetPrimitiveArrayCritical(obj_anchor, 0);
2255c190300cc0c631587320026896f49ac540317fbadlogic
2355c190300cc0c631587320026896f49ac540317fbadlogic
2466edbb1c8f8791b65a6b7f324951a845518b3cf6Justin Shapcott//@line:59
2555c190300cc0c631587320026896f49ac540317fbadlogic
2655c190300cc0c631587320026896f49ac540317fbadlogic		b2PrismaticJoint* joint = (b2PrismaticJoint*)addr;
2755c190300cc0c631587320026896f49ac540317fbadlogic		anchor[0] = joint->GetLocalAnchorB().x;
2855c190300cc0c631587320026896f49ac540317fbadlogic		anchor[1] = joint->GetLocalAnchorB().y;
2955c190300cc0c631587320026896f49ac540317fbadlogic
3055c190300cc0c631587320026896f49ac540317fbadlogic	env->ReleasePrimitiveArrayCritical(obj_anchor, anchor, 0);
3155c190300cc0c631587320026896f49ac540317fbadlogic
3255c190300cc0c631587320026896f49ac540317fbadlogic}
3355c190300cc0c631587320026896f49ac540317fbadlogic
3466edbb1c8f8791b65a6b7f324951a845518b3cf6Justin ShapcottJNIEXPORT void JNICALL Java_com_badlogic_gdx_physics_box2d_joints_PrismaticJoint_jniGetLocalAxisA(JNIEnv* env, jobject object, jlong addr, jfloatArray obj_anchor) {
3566edbb1c8f8791b65a6b7f324951a845518b3cf6Justin Shapcott	float* anchor = (float*)env->GetPrimitiveArrayCritical(obj_anchor, 0);
3666edbb1c8f8791b65a6b7f324951a845518b3cf6Justin Shapcott
3766edbb1c8f8791b65a6b7f324951a845518b3cf6Justin Shapcott
3866edbb1c8f8791b65a6b7f324951a845518b3cf6Justin Shapcott//@line:71
3966edbb1c8f8791b65a6b7f324951a845518b3cf6Justin Shapcott
4066edbb1c8f8791b65a6b7f324951a845518b3cf6Justin Shapcott		b2PrismaticJoint* joint = (b2PrismaticJoint*)addr;
4166edbb1c8f8791b65a6b7f324951a845518b3cf6Justin Shapcott		anchor[0] = joint->GetLocalAxisA().x;
4266edbb1c8f8791b65a6b7f324951a845518b3cf6Justin Shapcott		anchor[1] = joint->GetLocalAxisA().y;
4366edbb1c8f8791b65a6b7f324951a845518b3cf6Justin Shapcott
4466edbb1c8f8791b65a6b7f324951a845518b3cf6Justin Shapcott	env->ReleasePrimitiveArrayCritical(obj_anchor, anchor, 0);
4566edbb1c8f8791b65a6b7f324951a845518b3cf6Justin Shapcott
4666edbb1c8f8791b65a6b7f324951a845518b3cf6Justin Shapcott}
4766edbb1c8f8791b65a6b7f324951a845518b3cf6Justin Shapcott
4855c190300cc0c631587320026896f49ac540317fbadlogicJNIEXPORT jfloat JNICALL Java_com_badlogic_gdx_physics_box2d_joints_PrismaticJoint_jniGetJointTranslation(JNIEnv* env, jobject object, jlong addr) {
4955c190300cc0c631587320026896f49ac540317fbadlogic
5055c190300cc0c631587320026896f49ac540317fbadlogic
5166edbb1c8f8791b65a6b7f324951a845518b3cf6Justin Shapcott//@line:82
5288c5338f70dfd997da58047979351da5369539e0Justin Shapcott
53a4008501496b9f47d45f04d206b76529436623e7Justin Shapcott		b2PrismaticJoint* joint = (b2PrismaticJoint*)addr;
54a4008501496b9f47d45f04d206b76529436623e7Justin Shapcott		return joint->GetJointTranslation();
553ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
563ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
573ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames}
583ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
593ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgamesJNIEXPORT jfloat JNICALL Java_com_badlogic_gdx_physics_box2d_joints_PrismaticJoint_jniGetJointSpeed(JNIEnv* env, jobject object, jlong addr) {
603ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
613ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
6266edbb1c8f8791b65a6b7f324951a845518b3cf6Justin Shapcott//@line:92
63a4008501496b9f47d45f04d206b76529436623e7Justin Shapcott
64a4008501496b9f47d45f04d206b76529436623e7Justin Shapcott		b2PrismaticJoint* joint = (b2PrismaticJoint*)addr;
65a4008501496b9f47d45f04d206b76529436623e7Justin Shapcott		return joint->GetJointSpeed();
663ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
673ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
683ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames}
693ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
703ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgamesJNIEXPORT jboolean JNICALL Java_com_badlogic_gdx_physics_box2d_joints_PrismaticJoint_jniIsLimitEnabled(JNIEnv* env, jobject object, jlong addr) {
713ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
723ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
7366edbb1c8f8791b65a6b7f324951a845518b3cf6Justin Shapcott//@line:102
74a4008501496b9f47d45f04d206b76529436623e7Justin Shapcott
75a4008501496b9f47d45f04d206b76529436623e7Justin Shapcott		b2PrismaticJoint* joint = (b2PrismaticJoint*)addr;
76a4008501496b9f47d45f04d206b76529436623e7Justin Shapcott		return joint->IsLimitEnabled();
773ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
783ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
793ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames}
803ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
813ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgamesJNIEXPORT void JNICALL Java_com_badlogic_gdx_physics_box2d_joints_PrismaticJoint_jniEnableLimit(JNIEnv* env, jobject object, jlong addr, jboolean flag) {
823ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
833ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
8466edbb1c8f8791b65a6b7f324951a845518b3cf6Justin Shapcott//@line:112
85a4008501496b9f47d45f04d206b76529436623e7Justin Shapcott
86a4008501496b9f47d45f04d206b76529436623e7Justin Shapcott		b2PrismaticJoint* joint = (b2PrismaticJoint*)addr;
87a4008501496b9f47d45f04d206b76529436623e7Justin Shapcott		joint->EnableLimit(flag);
883ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
893ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
903ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames}
913ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
923ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgamesJNIEXPORT jfloat JNICALL Java_com_badlogic_gdx_physics_box2d_joints_PrismaticJoint_jniGetLowerLimit(JNIEnv* env, jobject object, jlong addr) {
933ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
943ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
9566edbb1c8f8791b65a6b7f324951a845518b3cf6Justin Shapcott//@line:122
96a4008501496b9f47d45f04d206b76529436623e7Justin Shapcott
97a4008501496b9f47d45f04d206b76529436623e7Justin Shapcott		b2PrismaticJoint* joint = (b2PrismaticJoint*)addr;
98a4008501496b9f47d45f04d206b76529436623e7Justin Shapcott		return joint->GetLowerLimit();
993ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
1003ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
1013ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames}
1023ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
1033ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgamesJNIEXPORT jfloat JNICALL Java_com_badlogic_gdx_physics_box2d_joints_PrismaticJoint_jniGetUpperLimit(JNIEnv* env, jobject object, jlong addr) {
1043ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
1053ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
10666edbb1c8f8791b65a6b7f324951a845518b3cf6Justin Shapcott//@line:132
107a4008501496b9f47d45f04d206b76529436623e7Justin Shapcott
108a4008501496b9f47d45f04d206b76529436623e7Justin Shapcott		b2PrismaticJoint* joint = (b2PrismaticJoint*)addr;
109a4008501496b9f47d45f04d206b76529436623e7Justin Shapcott		return joint->GetUpperLimit();
1103ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
1113ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
1123ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames}
1133ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
1143ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgamesJNIEXPORT void JNICALL Java_com_badlogic_gdx_physics_box2d_joints_PrismaticJoint_jniSetLimits(JNIEnv* env, jobject object, jlong addr, jfloat lower, jfloat upper) {
1153ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
1163ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
11766edbb1c8f8791b65a6b7f324951a845518b3cf6Justin Shapcott//@line:142
118a4008501496b9f47d45f04d206b76529436623e7Justin Shapcott
119a4008501496b9f47d45f04d206b76529436623e7Justin Shapcott		b2PrismaticJoint* joint = (b2PrismaticJoint*)addr;
120a4008501496b9f47d45f04d206b76529436623e7Justin Shapcott		joint->SetLimits(lower, upper );
1213ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
1223ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
1233ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames}
1243ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
1253ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgamesJNIEXPORT jboolean JNICALL Java_com_badlogic_gdx_physics_box2d_joints_PrismaticJoint_jniIsMotorEnabled(JNIEnv* env, jobject object, jlong addr) {
1263ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
1273ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
12866edbb1c8f8791b65a6b7f324951a845518b3cf6Justin Shapcott//@line:152
129a4008501496b9f47d45f04d206b76529436623e7Justin Shapcott
130a4008501496b9f47d45f04d206b76529436623e7Justin Shapcott		b2PrismaticJoint* joint = (b2PrismaticJoint*)addr;
131a4008501496b9f47d45f04d206b76529436623e7Justin Shapcott		return joint->IsMotorEnabled();
1323ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
1333ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
1343ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames}
1353ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
1363ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgamesJNIEXPORT void JNICALL Java_com_badlogic_gdx_physics_box2d_joints_PrismaticJoint_jniEnableMotor(JNIEnv* env, jobject object, jlong addr, jboolean flag) {
1373ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
1383ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
13966edbb1c8f8791b65a6b7f324951a845518b3cf6Justin Shapcott//@line:162
140a4008501496b9f47d45f04d206b76529436623e7Justin Shapcott
141a4008501496b9f47d45f04d206b76529436623e7Justin Shapcott		b2PrismaticJoint* joint = (b2PrismaticJoint*)addr;
142a4008501496b9f47d45f04d206b76529436623e7Justin Shapcott		joint->EnableMotor(flag);
1433ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
1443ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
1453ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames}
1463ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
1473ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgamesJNIEXPORT void JNICALL Java_com_badlogic_gdx_physics_box2d_joints_PrismaticJoint_jniSetMotorSpeed(JNIEnv* env, jobject object, jlong addr, jfloat speed) {
1483ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
1493ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
15066edbb1c8f8791b65a6b7f324951a845518b3cf6Justin Shapcott//@line:172
151a4008501496b9f47d45f04d206b76529436623e7Justin Shapcott
152a4008501496b9f47d45f04d206b76529436623e7Justin Shapcott		b2PrismaticJoint* joint = (b2PrismaticJoint*)addr;
153a4008501496b9f47d45f04d206b76529436623e7Justin Shapcott		joint->SetMotorSpeed(speed);
1543ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
1553ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
1563ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames}
1573ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
1583ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgamesJNIEXPORT jfloat JNICALL Java_com_badlogic_gdx_physics_box2d_joints_PrismaticJoint_jniGetMotorSpeed(JNIEnv* env, jobject object, jlong addr) {
1593ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
1603ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
16166edbb1c8f8791b65a6b7f324951a845518b3cf6Justin Shapcott//@line:182
162a4008501496b9f47d45f04d206b76529436623e7Justin Shapcott
163a4008501496b9f47d45f04d206b76529436623e7Justin Shapcott		b2PrismaticJoint* joint = (b2PrismaticJoint*)addr;
164a4008501496b9f47d45f04d206b76529436623e7Justin Shapcott		return joint->GetMotorSpeed();
1653ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
1663ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
1673ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames}
1683ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
1693ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgamesJNIEXPORT void JNICALL Java_com_badlogic_gdx_physics_box2d_joints_PrismaticJoint_jniSetMaxMotorForce(JNIEnv* env, jobject object, jlong addr, jfloat force) {
1703ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
1713ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
17266edbb1c8f8791b65a6b7f324951a845518b3cf6Justin Shapcott//@line:192
1733ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
174a4008501496b9f47d45f04d206b76529436623e7Justin Shapcott		b2PrismaticJoint* joint = (b2PrismaticJoint*)addr;
175a4008501496b9f47d45f04d206b76529436623e7Justin Shapcott		joint->SetMaxMotorForce(force);
1763ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
1773ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
1783ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames}
1793ea3eff151b3f69698ac4ded04b2c8e34b191ea8badlogicgames
180a4008501496b9f47d45f04d206b76529436623e7Justin ShapcottJNIEXPORT jfloat JNICALL Java_com_badlogic_gdx_physics_box2d_joints_PrismaticJoint_jniGetMotorForce(JNIEnv* env, jobject object, jlong addr, jfloat invDt) {
18188c5338f70dfd997da58047979351da5369539e0Justin Shapcott
18288c5338f70dfd997da58047979351da5369539e0Justin Shapcott
18366edbb1c8f8791b65a6b7f324951a845518b3cf6Justin Shapcott//@line:202
18488c5338f70dfd997da58047979351da5369539e0Justin Shapcott
185a4008501496b9f47d45f04d206b76529436623e7Justin Shapcott		b2PrismaticJoint* joint = (b2PrismaticJoint*)addr;
186a4008501496b9f47d45f04d206b76529436623e7Justin Shapcott		return joint->GetMotorForce(invDt);
18788c5338f70dfd997da58047979351da5369539e0Justin Shapcott
18888c5338f70dfd997da58047979351da5369539e0Justin Shapcott
18988c5338f70dfd997da58047979351da5369539e0Justin Shapcott}
19088c5338f70dfd997da58047979351da5369539e0Justin Shapcott
19155c190300cc0c631587320026896f49ac540317fbadlogicJNIEXPORT jfloat JNICALL Java_com_badlogic_gdx_physics_box2d_joints_PrismaticJoint_jniGetMaxMotorForce(JNIEnv* env, jobject object, jlong addr) {
19255c190300cc0c631587320026896f49ac540317fbadlogic
19355c190300cc0c631587320026896f49ac540317fbadlogic
19466edbb1c8f8791b65a6b7f324951a845518b3cf6Justin Shapcott//@line:212
19555c190300cc0c631587320026896f49ac540317fbadlogic
19655c190300cc0c631587320026896f49ac540317fbadlogic		b2PrismaticJoint* joint = (b2PrismaticJoint*)addr;
19755c190300cc0c631587320026896f49ac540317fbadlogic		return joint->GetMaxMotorForce();
19855c190300cc0c631587320026896f49ac540317fbadlogic
19955c190300cc0c631587320026896f49ac540317fbadlogic
20055c190300cc0c631587320026896f49ac540317fbadlogic}
20155c190300cc0c631587320026896f49ac540317fbadlogic
20255c190300cc0c631587320026896f49ac540317fbadlogicJNIEXPORT jfloat JNICALL Java_com_badlogic_gdx_physics_box2d_joints_PrismaticJoint_jniGetReferenceAngle(JNIEnv* env, jobject object, jlong addr) {
20355c190300cc0c631587320026896f49ac540317fbadlogic
20455c190300cc0c631587320026896f49ac540317fbadlogic
20566edbb1c8f8791b65a6b7f324951a845518b3cf6Justin Shapcott//@line:222
20655c190300cc0c631587320026896f49ac540317fbadlogic
20755c190300cc0c631587320026896f49ac540317fbadlogic		b2PrismaticJoint* joint = (b2PrismaticJoint*)addr;
20855c190300cc0c631587320026896f49ac540317fbadlogic		return joint->GetReferenceAngle();
20955c190300cc0c631587320026896f49ac540317fbadlogic
21055c190300cc0c631587320026896f49ac540317fbadlogic
21155c190300cc0c631587320026896f49ac540317fbadlogic}
21255c190300cc0c631587320026896f49ac540317fbadlogic
213