Table of Contents

Method b3Shape_GetContactData

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

b3Shape_GetContactData(b3ShapeId, b3ContactData*, int)

Get the touching contact data for a shape. The provided shapeId will be either shapeIdA or shapeIdB on the contact data.

public static extern int b3Shape_GetContactData(b3ShapeId shapeId, b3ContactData* contactData, int capacity)

Parameters

shapeId b3ShapeId

See the Box3D documentation.

contactData b3ContactData*

See the Box3D documentation.

capacity int

See the Box3D documentation.

Returns

int

the number of elements filled in the provided array

Remarks

Note: Box3D uses speculative collision so some contact points may be separated. @note Box3D uses speculative collision so some contact points may be separated. Warning: do not ignore the return value, it specifies the valid number of elements @warning do not ignore the return value, it specifies the valid number of elements