summaryrefslogtreecommitdiffstats
path: root/SmoothRotation.gd
diff options
context:
space:
mode:
authordusoleil <howcansocksbereal@gmail.com>2022-07-23 17:17:29 -0400
committerdusoleil <howcansocksbereal@gmail.com>2022-07-23 17:17:29 -0400
commit2e7b525d907f740367324a485eaeed2fe1fa5d6d (patch)
tree14b180d220f55397d77196dc4599a478889c90b9 /SmoothRotation.gd
parent6c3e080ad94dcbd3a3db678dd55da51cde869335 (diff)
downloadchicken-chaser-gd-2e7b525d907f740367324a485eaeed2fe1fa5d6d.tar.gz
chicken-chaser-gd-2e7b525d907f740367324a485eaeed2fe1fa5d6d.zip
Add Chicken Chasing
Diffstat (limited to 'SmoothRotation.gd')
-rw-r--r--SmoothRotation.gd2
1 files changed, 1 insertions, 1 deletions
diff --git a/SmoothRotation.gd b/SmoothRotation.gd
index 91d1f70..7789641 100644
--- a/SmoothRotation.gd
+++ b/SmoothRotation.gd
@@ -3,5 +3,5 @@ extends Tween
func rotate_y(ang, speed):
var parent = get_parent()
var _ret = remove_all()
- _ret = interpolate_property(parent, "rotation:y", parent.rotation.y, parent.rotation.y+ang,abs(ang/speed),Tween.TRANS_EXPO,Tween.EASE_OUT)
+ _ret = interpolate_property(parent, "rotation:y", parent.rotation.y, parent.rotation.y+ang,abs(ang/speed),Tween.TRANS_SINE,Tween.EASE_OUT)
_ret = start()