Skip to content

Commit

Permalink
bugfix: incorrect declaration of the native PhysicsSystem.init() method
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Jun 28, 2024
1 parent 0f5bda3 commit c5ae136
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public int update(float deltaTime, int collisionSteps,

native private static long getBodyInterface(long systemVa);

native private static long init(long systemVa, int maxBodies,
native private static void init(long systemVa, int maxBodies,
int numBodyMutexes, int maxBodyPairs, int maxContactConstraints,
long mapVa, long ovbFilterVa, long ovoFilterVa);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ JNIEXPORT jlong JNICALL Java_com_github_stephengold_joltjni_PhysicsSystem_getBod
/*
* Class: com_github_stephengold_joltjni_PhysicsSystem
* Method: init
* Signature: (JIIIIJJJ)J
* Signature: (JIIIIJJJ)V
*/
JNIEXPORT jlong JNICALL Java_com_github_stephengold_joltjni_PhysicsSystem_init
JNIEXPORT void JNICALL Java_com_github_stephengold_joltjni_PhysicsSystem_init
(JNIEnv *, jclass, jlong systemVa, jint maxBodies, jint numBodyMutexes, jint maxBodyPairs,
jint maxContactConstraints, jlong mapVa, jlong ovbFilterVa, jlong ovoFilterVa) {
PhysicsSystem * const pSystem
Expand Down

0 comments on commit c5ae136

Please sign in to comment.