How to get the position of a node in the model in space

I have drawn a model on the earth, and the nodes on the model will rotate. How can I get the spatial position of this node of the model

Hi @11118

You can use the ModelNode.matrix property to get the model-space transform of the node, then multiply that by the Model.modelMatrix to get the current world-space transform. You can then extract the world-space Cartesian3 position using Matrix4.getTranslation(). Here is a Sandcastle for demonstration.

Hope this helps,

It seems to be some error in the calculation.It is test result

The problem has been solved, thanks!