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:
|
2020-01-14 13:40:38 +01:00
|
|
|
transform = (spat as Spatial).transform * transform
|
2020-01-02 23:02:45 +01:00
|
|
|
|
|
|
|
spat = spat.get_parent()
|
|
|
|
|
|
|
|
|
|
|
|
|