I think some physics body’s position is problem.
I really need to follow sprite as camera is panning.
It was really easy when I used version 2.2x, by getCamera()
so I’ve been easily panning and zooming camera.
I want to move a sprite on top of a static physics body. facing the same issue. physics bodies are not taken by Follow i suppose. I tried using ActionCamera but the physics body just stays work. Is there any way to get Follow like effect or Camera effect like hill climb game on any physics Sprite?
Come up with a temporary idea, Move the entire scene. Then all will move along with it. sad part is that everything else is also moved, including buttons hehe… Move the running scene only when your physics sprite is moved.
I’m using cocos2d-3.14.1. I think it’s necessary to add a physical body to the sprite. sprite->addComponent(physicsBody); It worked for me. You can also try add Node to the sprite sprite->addComponent(edgeNode);, but I did not try. Also, do not add a physical body with this->addChild(edgeNode);