You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue description:
Look_at function should be start from the Node rotation .. not from 0 or 90
it should be smooth rotation
download the project and see
press the Arrow the move the Target , press Space bar to start looking at the target
it must start from the node rotation to be smooth rotation .. not from 0 or 90 degree
Not sure if I understand the issue correctly, but look_at works in global coord system, so you need to use global positions. If you have direction then you need to do something like look_at(global_transform.origin + lookDir)
I think OP wanted to have an "offset" for the node rotation applied after look_at(). Isn't this a matter of just calling look_at() then adding the angle you need to the rotation property every frame?
Otherwise, you could use a parent-child structure for this where you'd use look_at() on the parent node and rotate the child node independently.
Godot version:
Godot 3
Issue description:
Look_at function should be start from the Node rotation .. not from 0 or 90
it should be smooth rotation
download the project and see
press the Arrow the move the Target , press Space bar to start looking at the target
it must start from the node rotation to be smooth rotation .. not from 0 or 90 degree
Minimal reproduction project:
Look_at.zip
The text was updated successfully, but these errors were encountered: