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.

struct KinematicBody2D
@nogc nothrow
moveAndCollide
(
in Vector2 rel_vec
,
in bool infinite_inertia = true
,
in bool exclude_raycast_shapes = true
,
in bool test_only = false
)

Meta