XRAnchor AttachedNode, Scaling not respected

@RaananW perhaps I am just not doing this right, but I think scaling is not being set when you attach a transformNode with children to the attachedNode property of an XRAnchor.

I have noticed it in my own code, but for simplicity I whipped up a very simplified playground largely taken from the XR anchor documentation which appears to have the same issue.

You can adjust scaling with the scaleValue property, no matter what it is set to the scale never seems to apply when the anchor is set

What am I not doing right here?

The scaling will be overwritten by the decompose function, in case it is provided by the underlying system. What you can do is apply the scaling after the anchor has updated:

Babylon.js Playground (babylonjs.com)

Thanks, that works!

1 Like