public void update() { // move camera _curX = p.width / 2.0f + cameraXSpeed * curFrameCount; _curY = p.height / 2.0f + cameraYSpeed * curFrameCount; _curZ = (p.height / 2.0f) / P.tan(PConstants.PI * 60.0f / 360.0f) + cameraZSpeed * curFrameCount; // aim camera super.update(); // curFrameCount++; if (curFrameCount >= recycleAfterNumFrames) { curFrameCount = 0; // init(); } }