float* vals = (float*)env->GetPrimitiveArrayCritical(obj_vals, 0);
-//@line:186
+//@line:187
\r
b2Body* body = (b2Body*)addr;\r
b2Transform t = body->GetTransform();\r
float* position = (float*)env->GetPrimitiveArrayCritical(obj_position, 0);
-//@line:206
+//@line:207
\r
b2Body* body = (b2Body*)addr;\r
b2Vec2 p = body->GetPosition();\r
JNIEXPORT jfloat JNICALL Java_com_badlogic_gdx_physics_box2d_Body_jniGetAngle(JNIEnv* env, jobject object, jlong addr) {
-//@line:219
+//@line:220
\r
b2Body* body = (b2Body*)addr;\r
return body->GetAngle();\r
float* worldCenter = (float*)env->GetPrimitiveArrayCritical(obj_worldCenter, 0);
-//@line:234
+//@line:235
\r
b2Body* body = (b2Body*)addr;\r
b2Vec2 w = body->GetWorldCenter();\r
float* localCenter = (float*)env->GetPrimitiveArrayCritical(obj_localCenter, 0);
-//@line:251
+//@line:252
\r
b2Body* body = (b2Body*)addr;\r
b2Vec2 w = body->GetLocalCenter();\r
JNIEXPORT void JNICALL Java_com_badlogic_gdx_physics_box2d_Body_jniSetLinearVelocity(JNIEnv* env, jobject object, jlong addr, jfloat x, jfloat y) {
-//@line:268
+//@line:269
\r
b2Body* body = (b2Body*)addr;\r
body->SetLinearVelocity(b2Vec2(x, y));\r
float* linearVelocity = (float*)env->GetPrimitiveArrayCritical(obj_linearVelocity, 0);
-//@line:283
+//@line:284
\r
b2Body* body = (b2Body*)addr;\r
b2Vec2 l = body->GetLinearVelocity();\r
JNIEXPORT void JNICALL Java_com_badlogic_gdx_physics_box2d_Body_jniSetAngularVelocity(JNIEnv* env, jobject object, jlong addr, jfloat omega) {
-//@line:295
+//@line:296
\r
b2Body* body = (b2Body*)addr;\r
body->SetAngularVelocity(omega);\r
JNIEXPORT jfloat JNICALL Java_com_badlogic_gdx_physics_box2d_Body_jniGetAngularVelocity(JNIEnv* env, jobject object, jlong addr) {
-//@line:305
+//@line:306
\r
b2Body* body = (b2Body*)addr;\r
return body->GetAngularVelocity();\r
JNIEXPORT void JNICALL Java_com_badlogic_gdx_physics_box2d_Body_jniApplyForce(JNIEnv* env, jobject object, jlong addr, jfloat forceX, jfloat forceY, jfloat pointX, jfloat pointY) {
-//@line:328
+//@line:329
\r
b2Body* body = (b2Body*)addr;\r
body->ApplyForce(b2Vec2(forceX, forceY), b2Vec2(pointX, pointY));\r
JNIEXPORT void JNICALL Java_com_badlogic_gdx_physics_box2d_Body_jniApplyForceToCenter(JNIEnv* env, jobject object, jlong addr, jfloat forceX, jfloat forceY) {
-//@line:346
+//@line:347
\r
b2Body* body = (b2Body*)addr;\r
body->ApplyForceToCenter(b2Vec2(forceX, forceY));\r
JNIEXPORT void JNICALL Java_com_badlogic_gdx_physics_box2d_Body_jniApplyTorque(JNIEnv* env, jobject object, jlong addr, jfloat torque) {
-//@line:358
+//@line:359
\r
b2Body* body = (b2Body*)addr;\r
body->ApplyTorque(torque);\r
JNIEXPORT void JNICALL Java_com_badlogic_gdx_physics_box2d_Body_jniApplyLinearImpulse(JNIEnv* env, jobject object, jlong addr, jfloat impulseX, jfloat impulseY, jfloat pointX, jfloat pointY) {
-//@line:381
+//@line:382
\r
b2Body* body = (b2Body*)addr;\r
body->ApplyLinearImpulse( b2Vec2( impulseX, impulseY ), b2Vec2( pointX, pointY ) );\r
JNIEXPORT void JNICALL Java_com_badlogic_gdx_physics_box2d_Body_jniApplyAngularImpulse(JNIEnv* env, jobject object, jlong addr, jfloat impulse) {
-//@line:392
+//@line:393
\r
b2Body* body = (b2Body*)addr;\r
body->ApplyAngularImpulse(impulse);\r
JNIEXPORT jfloat JNICALL Java_com_badlogic_gdx_physics_box2d_Body_jniGetMass(JNIEnv* env, jobject object, jlong addr) {
-//@line:403
+//@line:404
\r
b2Body* body = (b2Body*)addr;\r
return body->GetMass();\r
JNIEXPORT jfloat JNICALL Java_com_badlogic_gdx_physics_box2d_Body_jniGetInertia(JNIEnv* env, jobject object, jlong addr) {
-//@line:414
+//@line:415
\r
b2Body* body = (b2Body*)addr;\r
return body->GetInertia();\r
float* massData = (float*)env->GetPrimitiveArrayCritical(obj_massData, 0);
-//@line:432
+//@line:433
\r
b2Body* body = (b2Body*)addr;\r
b2MassData m;\r
JNIEXPORT void JNICALL Java_com_badlogic_gdx_physics_box2d_Body_jniSetMassData(JNIEnv* env, jobject object, jlong addr, jfloat mass, jfloat centerX, jfloat centerY, jfloat I) {
-//@line:449
+//@line:450
\r
b2Body* body = (b2Body*)addr;\r
b2MassData m;\r
JNIEXPORT void JNICALL Java_com_badlogic_gdx_physics_box2d_Body_jniResetMassData(JNIEnv* env, jobject object, jlong addr) {
-//@line:465
+//@line:466
\r
b2Body* body = (b2Body*)addr;\r
body->ResetMassData();\r
float* worldPoint = (float*)env->GetPrimitiveArrayCritical(obj_worldPoint, 0);
-//@line:482
+//@line:483
\r
b2Body* body = (b2Body*)addr;\r
b2Vec2 w = body->GetWorldPoint( b2Vec2( localPointX, localPointY ) );\r
float* worldVector = (float*)env->GetPrimitiveArrayCritical(obj_worldVector, 0);
-//@line:501
+//@line:502
\r
b2Body* body = (b2Body*)addr;\r
b2Vec2 w = body->GetWorldVector( b2Vec2( localVectorX, localVectorY ) );\r
float* localPoint = (float*)env->GetPrimitiveArrayCritical(obj_localPoint, 0);
-//@line:520
+//@line:521
\r
b2Body* body = (b2Body*)addr;\r
b2Vec2 w = body->GetLocalPoint( b2Vec2( worldPointX, worldPointY ) );\r
float* worldVector = (float*)env->GetPrimitiveArrayCritical(obj_worldVector, 0);
-//@line:539
+//@line:540
\r
b2Body* body = (b2Body*)addr;\r
b2Vec2 w = body->GetLocalVector( b2Vec2( worldVectorX, worldVectorY ) );\r
float* linVelWorld = (float*)env->GetPrimitiveArrayCritical(obj_linVelWorld, 0);
-//@line:558
+//@line:559
\r
b2Body* body = (b2Body*)addr;\r
b2Vec2 w = body->GetLinearVelocityFromWorldPoint( b2Vec2( worldPointX, worldPointY ) );\r
float* linVelLoc = (float*)env->GetPrimitiveArrayCritical(obj_linVelLoc, 0);
-//@line:577
+//@line:578
\r
b2Body* body = (b2Body*)addr;\r
b2Vec2 w = body->GetLinearVelocityFromLocalPoint( b2Vec2( localPointX, localPointY ) );\r
JNIEXPORT jfloat JNICALL Java_com_badlogic_gdx_physics_box2d_Body_jniGetLinearDamping(JNIEnv* env, jobject object, jlong addr) {
-//@line:589
+//@line:590
\r
b2Body* body = (b2Body*)addr;\r
return body->GetLinearDamping();\r
JNIEXPORT void JNICALL Java_com_badlogic_gdx_physics_box2d_Body_jniSetLinearDamping(JNIEnv* env, jobject object, jlong addr, jfloat linearDamping) {
-//@line:599
+//@line:600
\r
b2Body* body = (b2Body*)addr;\r
body->SetLinearDamping(linearDamping);\r
JNIEXPORT jfloat JNICALL Java_com_badlogic_gdx_physics_box2d_Body_jniGetAngularDamping(JNIEnv* env, jobject object, jlong addr) {
-//@line:609
+//@line:610
\r
b2Body* body = (b2Body*)addr;\r
return body->GetAngularDamping();\r
JNIEXPORT void JNICALL Java_com_badlogic_gdx_physics_box2d_Body_jniSetAngularDamping(JNIEnv* env, jobject object, jlong addr, jfloat angularDamping) {
-//@line:619
+//@line:620
\r
b2Body* body = (b2Body*)addr;\r
body->SetAngularDamping(angularDamping);\r
}
-//@line:630
+//@line:631
inline b2BodyType getBodyType( int type )
{
JNIEXPORT void JNICALL Java_com_badlogic_gdx_physics_box2d_Body_jniSetType(JNIEnv* env, jobject object, jlong addr, jint type) {
-//@line:644
+//@line:645
\r
b2Body* body = (b2Body*)addr;\r
body->SetType(getBodyType(type));\r
JNIEXPORT jint JNICALL Java_com_badlogic_gdx_physics_box2d_Body_jniGetType(JNIEnv* env, jobject object, jlong addr) {
-//@line:658
+//@line:659
\r
b2Body* body = (b2Body*)addr;\r
return body->GetType();\r
JNIEXPORT void JNICALL Java_com_badlogic_gdx_physics_box2d_Body_jniSetBullet(JNIEnv* env, jobject object, jlong addr, jboolean flag) {
-//@line:668
+//@line:669
\r
b2Body* body = (b2Body*)addr;\r
body->SetBullet(flag);\r
JNIEXPORT jboolean JNICALL Java_com_badlogic_gdx_physics_box2d_Body_jniIsBullet(JNIEnv* env, jobject object, jlong addr) {
-//@line:678
+//@line:679
\r
b2Body* body = (b2Body*)addr;\r
return body->IsBullet();\r
JNIEXPORT void JNICALL Java_com_badlogic_gdx_physics_box2d_Body_jniSetSleepingAllowed(JNIEnv* env, jobject object, jlong addr, jboolean flag) {
-//@line:688
+//@line:689
\r
b2Body* body = (b2Body*)addr;\r
body->SetSleepingAllowed(flag);\r
JNIEXPORT jboolean JNICALL Java_com_badlogic_gdx_physics_box2d_Body_jniIsSleepingAllowed(JNIEnv* env, jobject object, jlong addr) {
-//@line:698
+//@line:699
\r
b2Body* body = (b2Body*)addr;\r
return body->IsSleepingAllowed();\r
JNIEXPORT void JNICALL Java_com_badlogic_gdx_physics_box2d_Body_jniSetAwake(JNIEnv* env, jobject object, jlong addr, jboolean flag) {
-//@line:709
+//@line:710
\r
b2Body* body = (b2Body*)addr;\r
body->SetAwake(flag);\r
JNIEXPORT jboolean JNICALL Java_com_badlogic_gdx_physics_box2d_Body_jniIsAwake(JNIEnv* env, jobject object, jlong addr) {
-//@line:720
+//@line:721
\r
b2Body* body = (b2Body*)addr;\r
return body->IsAwake();\r
JNIEXPORT void JNICALL Java_com_badlogic_gdx_physics_box2d_Body_jniSetActive(JNIEnv* env, jobject object, jlong addr, jboolean flag) {
-//@line:735
+//@line:736
\r
b2Body* body = (b2Body*)addr;\r
body->SetActive(flag);\r
JNIEXPORT jboolean JNICALL Java_com_badlogic_gdx_physics_box2d_Body_jniIsActive(JNIEnv* env, jobject object, jlong addr) {
-//@line:745
+//@line:746
\r
b2Body* body = (b2Body*)addr;\r
return body->IsActive();\r
JNIEXPORT void JNICALL Java_com_badlogic_gdx_physics_box2d_Body_jniSetFixedRotation(JNIEnv* env, jobject object, jlong addr, jboolean flag) {
-//@line:755
+//@line:756
\r
b2Body* body = (b2Body*)addr;\r
body->SetFixedRotation(flag);\r
JNIEXPORT jboolean JNICALL Java_com_badlogic_gdx_physics_box2d_Body_jniIsFixedRotation(JNIEnv* env, jobject object, jlong addr) {
-//@line:765
+//@line:766
\r
b2Body* body = (b2Body*)addr;\r
return body->IsFixedRotation();\r
JNIEXPORT jfloat JNICALL Java_com_badlogic_gdx_physics_box2d_Body_jniGetGravityScale(JNIEnv* env, jobject object, jlong addr) {
-//@line:793
+//@line:794
\r
b2Body* body = (b2Body*)addr;\r
return body->GetGravityScale();\r
JNIEXPORT void JNICALL Java_com_badlogic_gdx_physics_box2d_Body_jniSetGravityScale(JNIEnv* env, jobject object, jlong addr, jfloat scale) {
-//@line:803
+//@line:804
\r
b2Body* body = (b2Body*)addr;\r
body->SetGravityScale(scale);\r