Engine
Engine copied to clipboard
Bug: Game crashes when `phys_lengthconstraint` is configured incorrectly
Describe the bug
For it to work properly, phys_lengthconstraint
s must have their origin placed at entity 1 and their helper at entity 2. If this is not done and the helper is not moved from the constraint's origin, the game will crash upon starting the map.
To Reproduce
- Open provided map
- See how the helper is not moved from the entity's origin
- Compile map
- Observe crash
Issue Map
Expected Behavior
Instead of crashing, the entity should just be removed, with the console reporting the improper configuration, resulting in the entity being removed.
For example:
Constraint "[name here]" was configured incorrectly. The entity has been removed.
Operating System
Tested on Windows 11