|
|
@@ -231,7 +231,7 @@ To create a sensor, either set [BodyCreationSettings::mIsSensor](@ref BodyCreati
|
|
|
|
|
|
To make sensors detect collisions with static objects, set the [BodyCreationSettings::mCollideKinematicVsNonDynamic](@ref BodyCreationSettings::mCollideKinematicVsNonDynamic) to true or call [Body::SetCollideKinematicVsNonDynamic](@ref Body::SetCollideKinematicVsNonDynamic). Note that it can place a large burden on the collision detection system if you have a large sensor intersect with e.g. a large mesh terrain or a height field as you will get many contact callbacks and these contacts will take up a lot of space in the contact cache. Ensure that your sensor is in an object layer that collides with as few static bodies as possible.
|
|
|
|
|
|
-## Sleeping
|
|
|
+## Sleeping {#sleeping-bodies}
|
|
|
|
|
|
During the simulation step, bodies are divided in 'islands'. Each island consists of a set of dynamic bodies that are either in contact with each other, or that are connected through a constraint:
|
|
|
|