blob: f6df8c73ac5a27f327e8f3e0fb9f79fd01644202 (
plain) (
blame)
1
2
3
4
5
6
7
|
extends Tween
func rotate_y(ang, speed):
var parent = get_parent()
remove_all()
interpolate_property(parent, "rotation:y", parent.rotation.y, parent.rotation.y+ang,abs(ang/speed),Tween.TRANS_EXPO,Tween.EASE_OUT)
start()
|