I have to make layer which is following the physics body.
I’ve been wrote “Control Sphere Object with simple joystick in Box2D”
(http://www.cocos2d-x.org/forums/6/topics/2438)
and I successfully implement some rolling ball game by that source.
that time, I made Panning, zooming by using CCCamera.
like this…
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.
Any help…?