The node is as a public SharedPtr
Here is the function:
int getPlayerPos(int comp) {
Vector3 playerPos = playerNode_->GetWorldPosition();
if (comp) {
return round(playerPos.z_ / 6);
}
else {
return round(playerPos.x_ / 6);
}
}
The function is called within HandleUpdate(). If you need more code just ask.