Method b3Shape_GetSensorData
- Namespace
- Box3D.Native
- Assembly
- Box3D.NET.Native.dll
b3Shape_GetSensorData(b3ShapeId, b3ShapeId*, int)
Get the overlap data for a sensor shape.
public static extern int b3Shape_GetSensorData(b3ShapeId shapeId, b3ShapeId* visitorIds, int capacity)Parameters
shapeIdb3ShapeId-
the id of a sensor shape
visitorIdsb3ShapeId*-
a user allocated array that is filled with the overlapping shapes (visitors)
capacityint-
the capacity of overlappedShapes
Returns
- int
-
the number of elements filled in the provided array
Remarks
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 Warning: overlaps may contain destroyed shapes so use b3Shape_IsValid to confirm each overlap @warning overlaps may contain destroyed shapes so use b3Shape_IsValid to confirm each overlap