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
bodyIdb3BodyId-
See the Box3D documentation.
defb3ShapeDef*-
See the Box3D documentation.
hullb3HullData*-
See the Box3D documentation.
transformb3Transform-
See the Box3D documentation.
scaleVector3-
See the Box3D documentation.
Returns
- b3ShapeId
-
the shape id for accessing the shape