mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-12-25 01:17:10 +01:00
14 lines
202 B
GDScript3
14 lines
202 B
GDScript3
|
extends KinematicBody
|
||
|
|
||
|
func _enter_tree():
|
||
|
var spat : Node = get_parent()
|
||
|
|
||
|
while spat != null:
|
||
|
if spat is Spatial:
|
||
|
transform *= (spat as Spatial).transform
|
||
|
|
||
|
spat = spat.get_parent()
|
||
|
|
||
|
|
||
|
|