1
0
mirror of https://github.com/Relintai/broken_seals.git synced 2025-01-08 01:49:35 +01:00
broken_seals/game/player/EntityModel.gd

14 lines
212 B
GDScript

extends KinematicBody
func _enter_tree():
var spat : Node = get_parent()
while spat != null:
if spat is Spatial:
transform = (spat as Spatial).transform * transform
spat = spat.get_parent()