Method b3CreateSphereShape
- Namespace
- Box3D.Native
- Assembly
- Box3D.NET.Native.dll
b3CreateSphereShape(b3BodyId, b3ShapeDef*, b3Sphere*)
Create a circle 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 b3CreateSphereShape(b3BodyId bodyId, b3ShapeDef* def, b3Sphere* sphere)Parameters
bodyIdb3BodyId-
See the Box3D documentation.
defb3ShapeDef*-
See the Box3D documentation.
sphereb3Sphere*-
See the Box3D documentation.
Returns
- b3ShapeId
-
the shape id for accessing the shape