Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

rotate to angle godot

# lerp_angle - it's a lerp, but for angles. tis need cuz angle 
# around the object it's not a 0 to 360 degrees, but -180 to 180.
rot_speed = 0.2
self.rotation = lerp_angle(self.rotation, angle_to, rot_speed)
 
PREVIOUS NEXT
Tagged: #rotate #angle #godot
ADD COMMENT
Topic
Name
7+3 =