You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
When a RigidBody is removed inside notifyOnContact the game crashes. This happens because the PhysicsWorld still runs lateUpdate. Adding an if (rb != null) inside the for loop here fixes the issue, but I don't know if that's the proper solution.
To Reproduce
Add a Haxe trait to a RigidBody
Add object.remove() inside the RigidBody.notifyOnContact notifier
Expected behavior
To remove an object containing a RigidBody from notifyOnContact without errors.
System
Blender: 3.6.11
Armory: 2024.07
OS: Windows 11 Pro (x64)
Graphics card: NVIDIA GeForce RTX 3050 Ti Laptop
Description
When a
RigidBody
is removed insidenotifyOnContact
the game crashes. This happens because thePhysicsWorld
still runslateUpdate
. Adding anif (rb != null)
inside thefor
loop here fixes the issue, but I don't know if that's the proper solution.To Reproduce
Expected behavior
To remove an object containing a RigidBody from notifyOnContact without errors.
System
Blender: 3.6.11
Armory: 2024.07
OS: Windows 11 Pro (x64)
Graphics card: NVIDIA GeForce RTX 3050 Ti Laptop
Test File
remove_rb_on_contact.zip
The text was updated successfully, but these errors were encountered: