summaryrefslogblamecommitdiffstats
path: root/SmoothRotation.gd
blob: 7789641fe7bc814298f131a5d79dfd2f8920ac25 (plain) (tree)
1
2
3
4
5
6
7



                                 
                               
                                                                                                                                                  
                      
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_SINE,Tween.EASE_OUT)
	_ret = start()