You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a simple a-box with scale set to something that is not the default. If I place anchored on it and call createAnchor as per the documentation, my scale gets set back to a uniform 1.
It appears that tick in the anchored component does:
This seems to overrule the entire matrix of the object, including the scale. I verified this by placing const oldScale = object3D.scale.clone(); before the code and object3D.scale.copy(oldScale); after to restore it.
A-Frame Version: 1.6.0
Platform / Device: Meta Quest 3
Reproducible Code Snippet or URL: /
The text was updated successfully, but these errors were encountered:
Spatial anchors represent a space, which means the position, rotation and scale are all defined by it. This way anything placed within that space is relative to the anchor. But the anchored component is documented as anchoring the entity it's applied to, so it actually makes sense to retain the scale.
As a workaround you could either introduce one level of nesting, placing your <a-box> inside an <a-entity> that has the anchored component. Or you can use the width, height and depth properties of a-box instead of setting its scale.
Description:
I have a simple
a-box
withscale
set to something that is not the default. If I placeanchored
on it and callcreateAnchor
as per the documentation, my scale gets set back to a uniform1
.It appears that
tick
in theanchored
component does:This seems to overrule the entire matrix of the object, including the scale. I verified this by placing
const oldScale = object3D.scale.clone();
before the code andobject3D.scale.copy(oldScale);
after to restore it.The text was updated successfully, but these errors were encountered: