Table of Contents

Method Destroy

Namespace
Box3D
Assembly
Box3D.NET.dll

Destroy(bool)

Removes this shape from its body.

public void Destroy(bool updateBodyMass = true)

Parameters

updateBodyMass bool

Whether to recompute the body's mass now. Pass false when removing several shapes at once and call Box3D.Body.RecomputeMass afterwards.

Remarks

Every copy of this handle becomes invalid. Destroying the body or the world destroys its shapes, so this is only needed to remove one shape while keeping the rest.