cast Shape
expect fun castShape(proxy: ShapeProxy, translation: Vec2, filter: QueryFilter = QueryFilter.Default, callback: (Shape, Vec2, Vec2, Float) -> Float): TreeStats
Cast a shape against the world. The callback is called for each shape hit.
Return
Tree traversal statistics
Parameters
proxy
The shape proxy to cast
translation
The cast translation
filter
Query filter to select which shapes to test
callback
Called for each shape hit. Parameters: shape, point, normal, fraction. Return fraction to clip.