|
|
|
@ -51,7 +51,7 @@ extern "C" { |
|
|
|
|
btVector3 vec1 = btVector3(); |
|
|
|
|
jmeBulletUtil::convert(env, vector1, &vec1); |
|
|
|
|
btBU_Simplex1to4* simplexShape = new btBU_Simplex1to4(vec1); |
|
|
|
|
return (long) simplexShape; |
|
|
|
|
return (OBJ_PTR) simplexShape; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
@ -67,7 +67,7 @@ extern "C" { |
|
|
|
|
btVector3 vec2 = btVector3(); |
|
|
|
|
jmeBulletUtil::convert(env, vector2, &vec2); |
|
|
|
|
btBU_Simplex1to4* simplexShape = new btBU_Simplex1to4(vec1, vec2); |
|
|
|
|
return (long) simplexShape; |
|
|
|
|
return (OBJ_PTR) simplexShape; |
|
|
|
|
} |
|
|
|
|
/*
|
|
|
|
|
* Class: com_jme3_bullet_collision_shapes_SimplexCollisionShape |
|
|
|
@ -84,7 +84,7 @@ extern "C" { |
|
|
|
|
btVector3 vec3 = btVector3(); |
|
|
|
|
jmeBulletUtil::convert(env, vector3, &vec3); |
|
|
|
|
btBU_Simplex1to4* simplexShape = new btBU_Simplex1to4(vec1, vec2, vec3); |
|
|
|
|
return (long) simplexShape; |
|
|
|
|
return (OBJ_PTR) simplexShape; |
|
|
|
|
} |
|
|
|
|
/*
|
|
|
|
|
* Class: com_jme3_bullet_collision_shapes_SimplexCollisionShape |
|
|
|
@ -103,7 +103,7 @@ extern "C" { |
|
|
|
|
btVector3 vec4 = btVector3(); |
|
|
|
|
jmeBulletUtil::convert(env, vector4, &vec4); |
|
|
|
|
btBU_Simplex1to4* simplexShape = new btBU_Simplex1to4(vec1, vec2, vec3, vec4); |
|
|
|
|
return (long) simplexShape; |
|
|
|
|
return (OBJ_PTR) simplexShape; |
|
|
|
|
} |
|
|
|
|
#ifdef __cplusplus |
|
|
|
|
} |
|
|
|
|