For some reason, even though the viewport,camera, and object are positioned at (0,0,0), the object shows up in the middle of the screen and its children are nowhere to be found. Does anyone have any clues on what I could be doing wrong?
Hmmm that depends. Will your resolution change? If the camera is not to be moved you can just do the math and put the value into the config.
Otherwise you could get the screen width and height during your init() function and set the camera x position to (screenwidth/2) and camera y to (screenheight/2).
Comments
Try that out.
How can I dynamically set the position of the camera to the right spot?
Otherwise you could get the screen width and height during your init() function and set the camera x position to (screenwidth/2) and camera y to (screenheight/2).