PhysicsDirectSpaceState.castMotion

Checks whether the shape can travel to a point. The method will return an array with two floats between 0 and 1, both representing a fraction of motion. The first is how far the shape can move without triggering a collision, and the second is the point at which a collision will occur. If no collision is detected, the returned array will be 1, 1. If the shape can not move, the returned array will be 0, 0.

struct PhysicsDirectSpaceState
@nogc nothrow
Array
castMotion

Meta