How to keep collision stay in front of my character?

help How do I keep collision stay in front of my character when my character


moving

I want collision stay in front of cat’s face like the second pic when the cat is moving idk how to do it

Try this:

var input_dir = Input.get_vector("ui_left", "ui_right", "ui_up", "ui_down")
collision_shape.position = input_dir * 7

Here 7 is the distance of the collision from center and collision_shape is the collision node.

1 Like

thankss

1 Like