Hi everyone, I have a problem
how to run an action in a box2d body?
In Sprite I use this way:
auto moveTo = MoveTo::create(1, Vec2(touchLocation.x, touchLocation.y));
auto callback = CallFunc::create([&](){
CCLOG("Finish");
});
sprite->runAction(Sequence::create(moveTo, callback, nullptr));
But in b2Body this does not work …
b2Body * body;
body->runAction(nullptr); No member named 'runAction' in 'b2Body'
How do I move b2Body to a specific location?
Does anyone have a tip for me?