summaryrefslogtreecommitdiff
path: root/Scenes/CameraControl.gd
blob: 4950284383086197dad252fbcce9751058e380c6 (plain)
1
2
3
4
5
6
extends Spatial

func follow(obj : Spatial):
	get_parent().remove_child(self)
	obj.add_child(self)
	translate(Vector3.ZERO)