Get node's 3d-mesh size?
Cocos
MARCH 28, 2024
That’s the code I need! For others to get node’s mesh size function getNodeMeshSize(node) { const halfExtents = node.getComponent(MeshRenderer).model.modelBounds.halfExtents; Thanks so much! model.modelBounds.halfExtents; return halfExtents.clone().multiplyScalar(2); multiplyScalar(2); }
Let's personalize your content