Jump to content

[SOLVED] Get global position of child object


photo

Recommended Posts

Posted

Hi.

I have 2 object named A and B , and B is child of A. The position of B is local by A. I want global position of B. How can i get it?

Posted

Node::getWorldPosition

vec3 getWorldPosition()

Description

Returns the node position.

Return value

The node position in the world space

  • Like 1
×
×
  • Create New...