Offset doesn't work on child node
I try to apply an offset to the position of a child node, but it has no effect, while the scaling to the child works
Any idea or it is some bug ?
This is my code
export(PackedScene) var playerModel var playerModelNode export var scaling = 0.1 export var offset = Vector3(0,0,0) func _ready(): playerModelNode = playerModel.instance() * var nodeOrigin = $head/Camera/originMesh nodeOrigin.add_child(playerModelNode) * var scale = Vector3(scaling,scaling,scaling) playerModelNode.set_scale(scale) * var posPlayerModel = playerModelNode.global_transform.origin playerModelNode.global_transform.origin = posPlayerModel + offset