Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extends Spatial
- var proxy:bool = true
- func _process(delta):
- var player = get_parent().get_child(1)
- if translation.distance_to(player.translation) < 0:
- translation.distance_to(player.translation) == translation.distance_to(player.translation) * -1
- if translation.distance_to(player.translation) < 7:
- look_at(player.translation,Vector3.UP)
- else: rotation_degrees.z = 0
- # Called every frame. 'delta' is the elapsed time since the previous frame.
- #func _process(delta):
- # pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement