Physics2DServerSingleton.bodyTestMotion

Returns true if a collision would result from moving in the given direction from a given point in space. Margin increases the size of the shapes involved in the collision detection. Physics2DTestMotionResult can be passed to return additional information in.

struct Physics2DServerSingleton
@nogc nothrow
bool
bodyTestMotion
(
in RID _body
,
in Transform2D from
,
in Vector2 motion
,,
in double margin = 0.08
,)

Meta