How to obtain the actual position of model nodes

Since your model is offset far from its origin, you may want to get not the position but the center of the model.

// Get the center of the node, 
// all mesh and nodes under the node will be calculated.
let { max, min } = node.getHierarchyBoundingVectors()
let center = max.add(min).scale(0.5)

// Or 
// Get the center of the mesh, valid only for the current mesh.
let center =  mesh.getBoundingInfo().boundingBox.centerWorld

3 Likes