Table of Contents

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

bodyId b3BodyId

See the Box3D documentation.

flag NativeBool

See the Box3D documentation.

Remarks

See b3BodyDef::enableContactRecycling @see b3BodyDef::enableContactRecycling