appsinacup / godot-rapier-physics

Godot Rapier Physics – A 2D and 3D drop-in replacement for the Godot engine that adds stability and fluids.
https://appsinacup.com
MIT License
195 stars 11 forks source link

Collision excepted bodies still interact when under continuous collision detection. #103

Open Scuas opened 1 month ago

Scuas commented 1 month ago

Describe the bug Rigidbodies with collision exceptions will be stopped by continuous collision detection when they should be ignored.

To Reproduce Steps to reproduce the behavior: Create rigidbodies which are capable of collision with one another, at least one body must have ray or shape cast continuous detection. Set one body to have an exception with the other, and impulse it at a very high speed to cause a collision. See that despite having an exception, the body will try to 'stop' on the other. Positionally, it's like they've collided, but the game does not register any collision.

Expected behavior Bodies that have the other as collision exceptions should never interact at all, as under Godot Physics 2D.

Environment (please complete the following information):

Example project(zip) rapierexceptionsissue.zip

Ughuuu commented 1 week ago

Adding this video

https://github.com/appsinacup/godot-rapier-physics/assets/2369380/5e404187-590a-4e13-9852-9cb7b0f05092

Ughuuu commented 1 week ago

Using now rapier collision groups, so it should at least no longer happen if using masks/layers to filter collisions (after this PR) https://github.com/appsinacup/godot-rapier-physics/pull/128