Table of Contents

Method b3CreateTransformedHullShape

Namespace
Box3D.Native
Assembly
Box3D.NET.Native.dll

b3CreateTransformedHullShape(b3BodyId, b3ShapeDef*, b3HullData*, b3Transform, Vector3)

Create a convex hull shape and attach it to a body. The hull is cloned then transformed with scale applied first. Use this for non-uniform or mirrored scale or a baked local transform. The baked result is shared through the world hull database. The shape definition and geometry are fully cloned. Contacts are not created until the next time step.

public static extern b3ShapeId b3CreateTransformedHullShape(b3BodyId bodyId, b3ShapeDef* def, b3HullData* hull, b3Transform transform, Vector3 scale)

Parameters

bodyId b3BodyId

See the Box3D documentation.

def b3ShapeDef*

See the Box3D documentation.

hull b3HullData*

See the Box3D documentation.

transform b3Transform

See the Box3D documentation.

scale Vector3

See the Box3D documentation.

Returns

b3ShapeId

the shape id for accessing the shape