-
I'm trying to disable a sensor in Jolt Physics using the following approaches:
and
However, neither approach seems to prevent overlaps from occurring. Here’s the behaviour I’d like to achieve:
I understand that I can use Is there a built-in way to achieve this behaviour in Jolt, or is my custom logic the only solution? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This changes the sensor into a normal rigid body so all simulated objects start colliding as if it were a solid object.
This makes the sensor go to sleep. For sensors this means it doesn't detect sleeping bodies anymore, but it will still detect active ones.
Correct.
There are 2 ways:
In both cases you should get an 'end-overlap' callback during the next |
Beta Was this translation helpful? Give feedback.
This changes the sensor into a normal rigid body so all simulated objects start colliding as if it were a solid object.
This makes the sensor go to sleep. For sensors this means it doesn't detect sleeping bodies anymore, but it will still detect active ones.
Correct.
There are 2 ways:
BodyInterface::…