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
6.42k stars 414 forks source link

Adds a flag to enable assertion in non debug builds. #1075

Closed AndreaCatania closed 4 months ago

AndreaCatania commented 4 months ago

Unreal Engine has two type of compilation targets DebugGame and Development. When compiling in DebugGame, despite the name, the produced binary is not a target Debug but it's still target Release but without optimizations. This proposed change allows to enable the assertion even for non debug builds, so we can still use assertions even in Unreal Engine.