Table of Contents

Method AddHull

Namespace
Box3D
Assembly
Box3D.NET.dll

AddHull(ConvexHull, ShapeDefinition?)

Attaches a convex hull to this body.

public Shape AddHull(ConvexHull hull, ShapeDefinition? definition = null)

Parameters

hull ConvexHull

The hull. It is copied, so it may be disposed afterwards.

definition ShapeDefinition?

The shape settings, or null for the defaults.

Returns

Shape

The new shape.

Examples

using var rock = ConvexHull.Rock(0.5f);
body.AddHull(rock);

Exceptions

ObjectDisposedException

hull has been disposed.

ArgumentNullException

hull is null.