broken_seals/game/player/EntityModel.gd

14 lines
212 B
GDScript3
Raw Normal View History

2020-01-02 23:02:45 +01:00
extends KinematicBody
func _enter_tree():
var spat : Node = get_parent()
while spat != null:
if spat is Spatial:
transform = (spat as Spatial).transform * transform
2020-01-02 23:02:45 +01:00
spat = spat.get_parent()