Closed galvesribeiro closed 1 month ago
Hi,
There was an issue in the native call, please update to 2.9.2
and it should be fixed.
Thanks
Thanks for the quick update.
I've updated to 2.9.2 but the same problem still happen.
It crashes immediately when run that line:
You need to pass the width as sampleCount not samples.Length
Good catch. It worked.
Is that kind of error/crashes reported anywhere? I've set both the TraceHandler and the AssertFailure handlers but they weren't never triggered.
Thanks!
It crashed on jolt side: https://github.com/jrouwe/JoltPhysics/blob/master/Jolt/Physics/Collision/Shape/HeightFieldShape.cpp#L89
So jump there and ask the author to improve the error maybe?
Cool thanks!
Hello!
At our initial test I was trying to create a
HeightFieldShape
to represent our terrain but after initialize thePhysicsSystem
and start creating the objects the process just crash. No logs, no errors, just exit.The sample core to reproduce after the
PhysicsSystem
initialization is like this:The code actually crashes with this call on the constructor which calls
JPH_HeightFieldShapeSettings_Create
:Any idea what that may be?
Thanks!