@edapx wrote:
Hello, I'm trying to get the gloabl position of a parent node, but the app crashes with the error: Thread 1: EXC_BAD_ACCESS
To reproduce the error, is enough to put this code in the setup method:
auto bla = ofNode(); bla.boom(200); auto blu = ofNode(bla); blu.getGlobalPosition(); blu.getParent()->getGlobalPosition();Does anyone has experienced something similar? is this the proper way to get the global position of a parent node without accessing it directly?
Posts: 4
Participants: 2