Method b3CreateCapsuleShape
- Namespace
- Box3D.Native
- Assembly
- Box3D.NET.Native.dll
b3CreateCapsuleShape(b3BodyId, b3ShapeDef*, b3Capsule*)
Create a capsule shape and attach it to a body. The shape definition and geometry are fully cloned. Contacts are not created until the next time step.
public static extern b3ShapeId b3CreateCapsuleShape(b3BodyId bodyId, b3ShapeDef* def, b3Capsule* capsule)Parameters
bodyIdb3BodyId-
See the Box3D documentation.
defb3ShapeDef*-
See the Box3D documentation.
capsuleb3Capsule*-
See the Box3D documentation.
Returns
- b3ShapeId
-
the shape id for accessing the shape