I have to make layer which is following the physics body.
I’ve been wrote “Control Sphere Object with simple joystick in Box2D”
and I successfully implement some rolling ball game by that source.
that time, I made Panning, zooming by using CCCamera.
float speed = _hero->getSpeed(); CCCamera* pCamera = this->getCamera(); pCamera->getCenterXYZ(&x, &y, &z); pCamera->setCenterXYZ(x+_hero->getPosition().x, x+_hero->getPosition().y, speed/100);
but, I cant find CCCamera object in 3.0 rc1
Now, I found that CCCamera was removed in 3.0beta.
I tried classical way, like moving layer instead of moving camera.
But it’s not working properly. Follow action is also not working.