Function KinematicBody.moveAndCollide
Moves the body along the vector rel_vec
. The body will stop if it collides. Returns a KinematicCollision
, 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.kinematiccollision.KinematicCollision) moveAndCollide
(
const(Vector3) rel_vec,
const(bool) infinite_inertia = true,
const(bool) exclude_raycast_shapes = true,
const(bool) test_only = false
) nothrow @nogc;