Function Shape2D.collideWithMotionAndGetContacts
Returns a list of the points where this shape would touch another, if a given movement was applied. If there are no collisions the list is empty.
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
).
Array collideWithMotionAndGetContacts
(
const(Transform2D) local_xform,
const(Vector2) local_motion,
Shape2D with_shape,
const(Transform2D) shape_xform,
const(Vector2) shape_motion
) nothrow @nogc;