File tree Expand file tree Collapse file tree
java/com/github/stephengold/joltjni Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -292,7 +292,7 @@ public Vec3 getVelocity() {
292292 @ Override
293293 public boolean hasContact () {
294294 long vertexVa = va ();
295- boolean result = hasContact (vertexVa );
295+ boolean result = getHasContact (vertexVa );
296296
297297 return result ;
298298 }
@@ -310,6 +310,8 @@ public boolean hasContact() {
310310 native private static void getCollisionPlane (
311311 long vertexVa , FloatBuffer storeFloats );
312312
313+ native private static boolean getHasContact (long vertexVa );
314+
313315 native private static float getInvMass (long vertexVa );
314316
315317 native private static float getLargestPenetration (long vertexVa );
@@ -323,8 +325,6 @@ native private static void getPreviousPosition(
323325 native private static void getVelocity (
324326 long vertexVa , FloatBuffer storeFloats );
325327
326- native private static boolean hasContact (long vertexVa );
327-
328328 native private static void resetCollision (long vertexVa );
329329
330330 native private static void setCollidingShapeIndex (long vertexVa , int index );
Original file line number Diff line number Diff line change @@ -87,6 +87,19 @@ JNIEXPORT void JNICALL Java_com_github_stephengold_joltjni_SoftBodyVertex_getCol
8787 pFloats[3 ] = result.GetConstant ();
8888}
8989
90+ /*
91+ * Class: com_github_stephengold_joltjni_SoftBodyVertex
92+ * Method: getHasContact
93+ * Signature: (J)Z
94+ */
95+ JNIEXPORT jboolean JNICALL Java_com_github_stephengold_joltjni_SoftBodyVertex_getHasContact
96+ (JNIEnv *, jclass, jlong vertexVa) {
97+ const SoftBodyVertex * const pVertex
98+ = reinterpret_cast <SoftBodyVertex *> (vertexVa);
99+ const bool result = pVertex->mHasContact ;
100+ return result;
101+ }
102+
90103/*
91104 * Class: com_github_stephengold_joltjni_SoftBodyVertex
92105 * Method: getInvMass
@@ -164,19 +177,6 @@ JNIEXPORT void JNICALL Java_com_github_stephengold_joltjni_SoftBodyVertex_getVel
164177 pFloats[2 ] = result.GetZ ();
165178}
166179
167- /*
168- * Class: com_github_stephengold_joltjni_SoftBodyVertex
169- * Method: hasContact
170- * Signature: (J)Z
171- */
172- JNIEXPORT jboolean JNICALL Java_com_github_stephengold_joltjni_SoftBodyVertex_hasContact
173- (JNIEnv *, jclass, jlong vertexVa) {
174- const SoftBodyVertex * const pVertex
175- = reinterpret_cast <SoftBodyVertex *> (vertexVa);
176- const bool result = pVertex->mHasContact ;
177- return result;
178- }
179-
180180/*
181181 * Class: com_github_stephengold_joltjni_SoftBodyVertex
182182 * Method: resetCollision
You can’t perform that action at this time.
0 commit comments