I’m trying to parent one node to another, both with physics bodies. However, the child does not follow the motion of the parent.
I’ve seen somewhere else on the forum that removing some code from CCDirector.cpp will fix the problem, but I can’t find it! I can find CCDirector.h, but not the cpp file. Does anyone know how I can find it, or if there is another way to fix the parenting problem?
I’m using Cocos studio with framework 3.6.
Go to the directory where you see .h file. You shouod find the director.cpp right there.
I can’t find any .cpp files in that directory. I see only the .h files, but can’t see the corresponding .cpp files in there.