jrouwe / JoltPhysics

A multi core friendly rigid body physics and collision detection library. Written in C++. Suitable for games and VR applications. Used by Horizon Forbidden West.
MIT License
6k stars 374 forks source link

Assert hit on a scene without constraints w/ `JPH::TempAllocatorMalloc`. #1102

Closed skaarj1989 closed 2 months ago

skaarj1989 commented 2 months ago

image https://github.com/jrouwe/JoltPhysics/blob/56adf54375d4393be7752acd796e1ca3ea3f5474/Jolt/Core/Memory.cpp#L41

Triggered from: https://github.com/jrouwe/JoltPhysics/blob/56adf54375d4393be7752acd796e1ca3ea3f5474/Jolt/Physics/PhysicsSystem.cpp#L281

jrouwe commented 2 months ago

Sorry about that. I'm not using TempAllocatorMalloc myself because the simulation runs slower than with TempAllocatorImpl so I didn't spot it.