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
hullConvexHull-
The hull. It is copied into the compound by Box3D.CompoundBuilder.Build.
positionVector3-
Where it goes, in compound-local space.
rotationQuaternion?-
Its orientation, or null for none.
materialPhysicsMaterial?-
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
-
hullis null.