Public repository for MUR pre alpha
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

19 lines
429 B

extends MeshInstance
var old_rotation = 0
func _process(delta):
var parent_rotation = get_parent().get_parent().get_rotation_degrees().y
var rotation = (int(parent_rotation * 10) % 225 ) / 10
if parent_rotation < 0:
rotation *= -1
if rotation > old_rotation:
rotation += rotation - old_rotation
else:
rotation -= old_rotation - rotation
old_rotation = rotation
#set_rotation_degrees(Vector3(0,rotation,0))