Function KinematicBody2D.moveAndCollide
Moves the body along the vector rel_vec. The body will stop if it collides. Returns a KinematicCollision2D, which contains information about the collision.
If test_only is true, the body does not move but the would-be collision information is given.
godot .d .reference .Ref!(godot.kinematiccollision2d.KinematicCollision2D) moveAndCollide
(
const(Vector2) rel_vec,
const(bool) infinite_inertia = true,
const(bool) exclude_raycast_shapes = true,
const(bool) test_only = false
) nothrow @nogc;