Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | KimHeellstrom |
How to make the object rotate towards the mouse, the object is a KinematicBody2D
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | KimHeellstrom |
How to make the object rotate towards the mouse, the object is a KinematicBody2D
Reply From: | kidscancode |
You can use look_at()
for this:
look_at(get_global_mouse_position())
Example of usage: