getPhysicsBody()->setVelocity之后用什么来立即停止惯性移动?
sp->getPhysicsBody()->applyForce(Vec2::ZERO);
sp->getPhysicsBody()->setVelocity(Vec2::ZERO);
sp->setPosition(Vec2(0, 0));
但是有惯性的偏差
碰撞检测里不能移动精灵吗?
getPhysicsBody()->setVelocity之后用什么来立即停止惯性移动?
sp->getPhysicsBody()->applyForce(Vec2::ZERO);
sp->getPhysicsBody()->setVelocity(Vec2::ZERO);
sp->setPosition(Vec2(0, 0));
但是有惯性的偏差
碰撞检测里不能移动精灵吗?