Physics2DServerSingleton.bodyTestMotion

Returns whether a body can move from a given point in a given direction. Apart from the boolean return value, a 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