Table of Contents

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

bodyId b3BodyId

See the Box3D documentation.

def b3ShapeDef*

See the Box3D documentation.

sphere b3Sphere*

See the Box3D documentation.

Returns

b3ShapeId

the shape id for accessing the shape