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.

struct KinematicBody
@nogc nothrow
moveAndCollide
(
in Vector3 rel_vec
,
in bool infinite_inertia = true
,
in bool test_only = false
)

Meta