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
hullConvexHull-
The hull. It is copied, so it may be disposed afterwards.
definitionShapeDefinition?-
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
-
hullhas been disposed. - ArgumentNullException
-
hullis null.