Look_at() function doing nothing

Godot Version

4.3

Question

I’m using look_at in _ready of a AnimatableBody2D and it does nothing.

Using a not null direction from the body global position. Also tried adding that direction to the global position. Nothing happens.

If I set the rotation Vector3 the body rotates but is harder to know the angle i need.

I’m setting up a car in a position I get from a Curve3D and trying it to look forwards to the next point in the Curve3D.
There are rotated parents. The curve is inside a rotated Node3D (the road)

This will only run look_at once, when the game starts. if you want it to continue looking a the next point you will have to run look_at consistently after changing position.

1 Like