fabmax / physx-jni

Java JNI bindings for Nvidia PhysX
MIT License
85 stars 8 forks source link

Extracting contact information #30

Closed haubna closed 2 years ago

haubna commented 2 years ago

Couldn't find a way to implement this behaviour. Would be very useful for playing sounds based on impact force and location. https://gameworksdocs.nvidia.com/PhysX/4.0/documentation/PhysXGuide/Manual/AdvancedCollisionDetection.html#extracting-contact-information

fabmax commented 2 years ago

Yes, this sounds quite useful. Passing raw pointers as buffers is always a bit painful with JNI but I think it shouldn't be too hard to add that.

fabmax commented 2 years ago

Alright, version 0.4.15 is up with support for contect point extraction. I also extended the SimCallbackTest appropriately.