Function Shape2D.collideWithMotion

Returns whether this shape would collide with another, if a given movement was applied. This method needs the transformation matrix for this shape (local_xform), the movement to test on this shape (local_motion), the shape to check collisions with (with_shape), the transformation matrix of that shape (shape_xform), and the movement to test onto the other object (shape_motion).

bool collideWithMotion (
  const(Transform2D) local_xform,
  const(Vector2) local_motion,
  Shape2D with_shape,
  const(Transform2D) shape_xform,
  const(Vector2) shape_motion
) nothrow @nogc;