Method b3Body_SetAwake
- Namespace
- Box3D.Native
- Assembly
- Box3D.NET.Native.dll
b3Body_SetAwake(b3BodyId, NativeBool)
Wake a body from sleep. This wakes the entire island the body is touching.
public static extern void b3Body_SetAwake(b3BodyId bodyId, NativeBool awake)Parameters
bodyIdb3BodyId-
See the Box3D documentation.
awakeNativeBool-
See the Box3D documentation.
Remarks
Warning: Putting a body to sleep will put the entire island of bodies touching this body to sleep, @warning Putting a body to sleep will put the entire island of bodies touching this body to sleep, which can be expensive and possibly unintuitive.