intersectShape

abstract fun intersectShape(shape: Shape, shapePos: DIso3, filter: PhysicsQuery.Filter, fn: (ColliderKey) -> PhysicsQuery.Result)

Gets every collider whose shape intersects shape if that shape was positioned at shapePos.

Parameters

shape

The shape to test against.

shapePos

The position of the tested shape in the world.

filter

The filter for determining which colliders are tested against.

fn

The callback to run for each result, allowing you to continue or stop the query.