Method b3Body_EnableContactRecycling
- Namespace
- Box3D.Native
- Assembly
- Box3D.NET.Native.dll
b3Body_EnableContactRecycling(b3BodyId, NativeBool)
Enable or disable contact recycling for this body. Contact recycling is a performance optimization that reuses contact manifolds when bodies move slightly. Disabling it can avoid ghost collisions on characters at the cost of higher per-step work. Existing contacts retain their prior setting; only contacts created after this call see the new value.
public static extern void b3Body_EnableContactRecycling(b3BodyId bodyId, NativeBool flag)Parameters
bodyIdb3BodyId-
See the Box3D documentation.
flagNativeBool-
See the Box3D documentation.
Remarks
See b3BodyDef::enableContactRecycling @see b3BodyDef::enableContactRecycling