Table of Contents

Method AddHull

Namespace
Box3D
Assembly
Box3D.NET.dll

AddHull(ConvexHull, Vector3, Quaternion?, PhysicsMaterial?)

Adds a convex hull at a transform.

public CompoundBuilder AddHull(ConvexHull hull, Vector3 position, Quaternion? rotation = null, PhysicsMaterial? material = null)

Parameters

hull ConvexHull

The hull. It is copied into the compound by Box3D.CompoundBuilder.Build.

position Vector3

Where it goes, in compound-local space.

rotation Quaternion?

Its orientation, or null for none.

material PhysicsMaterial?

The surface material, or null for the defaults.

Returns

CompoundBuilder

This builder, so calls can be chained.

Remarks

The same hull may be added many times at different transforms; Box3D stores it once and the instances share it.

Exceptions

ArgumentNullException

hull is null.