1
0
mirror of https://github.com/Relintai/broken_seals.git synced 2024-12-28 13:27:10 +01:00
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()