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.

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