Sensor always collides with vehicle #1585
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I don't see how that could happen. I tried to repro this by adding a ragdoll to the vehicle test in the samples: And that seems to do what I would expect it to do: Jolt.Physics.Samples.2025-04-02.21-47-46.mp4Personally, I would temporarily change the object layer of the bodies in the ragdoll or temporarily remove the ragdoll from the world completely as it is cheaper than making the ragdoll a sensor. Making the ragdoll a sensor goes through the entire collision detection pipeline. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the reply! I also tried to change the ragdolls to a different layer that specified that collisions should never happen in the callback. But that was not working either, so I guess there is definitely something off about my implementation or game code. |
Beta Was this translation helpful? Give feedback.
-
|
Sorry for this, this has been indeed a problem with my game code, and nothing to do with the physics engine. I also changed the solution to your suggestion, putting the player on to a non-colliding layer instead of using sensor mode. |
Beta Was this translation helpful? Give feedback.

I don't see how that could happen. I tried to repro this by adding a ragdoll to the vehicle test in the samples:
VehicleTest.zip
And that seems to do what I would expect it to do:
Jolt.Physics.Samples.2025-04-02.21-47-46.mp4
Personally, I would temporarily change the object layer of the bodies in the ragdoll or temporarily remove the ragdoll from the world completely as it is cheaper th…