Hi
I have an issue when used the function look_at (Godot 4.0.3)in Aiming the Turrets | GameDev.tv
look_at(enemy.global_position, Vector3.UP, true)
too many arguments for “look_at()” call. expected at most 2 but received 3.
tnx
Hi
I have an issue when used the function look_at (Godot 4.0.3)in Aiming the Turrets | GameDev.tv
look_at(enemy.global_position, Vector3.UP, true)
too many arguments for “look_at()” call. expected at most 2 but received 3.
tnx
Hi Angel,
The only thing i can think of is that because look_at is an internal function not one that we created is that something has changed between versions.
I would update to godot 4.1.1 and see if the issue is resolved as that is the version we used in the course and maybe they changed the function under the hood to include the boolean at the end.
Let me know how you get on.
just looked this up as i was curious.
4.03 only takes the two arguments, the Target and the UP direction vector.
the additional 3rd ‘use model front’ bool was introduced in later versions.
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.