Closed mqxf closed 1 year ago
I will fix that on the physx-jni side. Auto-calling the loader on context creation is not possible because kool-physics
is separated from kool-core
, i.e. KoolContext
has no access to physx-jni functions.
Yeah, that works better, its just some dumb ClassLoader issue which loads enum declarations before static block.
You probably got an email from my friend Julian about the engine and the jni not loading. I found the issue, in one of the enums which calls native functions upon initializing, it tries to do so before the static block that loads the native libraries. I know this is also an issue with physx jni, but the reason I post this here is because the simplest fix is when creating a
KoolContext
, it should callde.fabmax.physxjni.Loader.load()
upon making the context, that way this issue does not occur.