diff --git a/cocos/physics/CCPhysicsBody.cpp b/cocos/physics/CCPhysicsBody.cpp index bd0acd3e5731..8b9451f87345 100644 --- a/cocos/physics/CCPhysicsBody.cpp +++ b/cocos/physics/CCPhysicsBody.cpp @@ -555,7 +555,7 @@ void PhysicsBody::setVelocity(const Point& velocity) { if (!_dynamic) { - CCLOG("physics warning: your cann't set velocity for a static body."); + CCLOG("physics warning: your can't set velocity for a static body."); return; } @@ -581,7 +581,7 @@ void PhysicsBody::setAngularVelocity(float velocity) { if (!_dynamic) { - CCLOG("physics warning: your cann't set angular velocity for a static body."); + CCLOG("physics warning: your can't set angular velocity for a static body."); return; } diff --git a/samples/Cpp/TestCpp/Classes/PhysicsTest/PhysicsTest.cpp b/samples/Cpp/TestCpp/Classes/PhysicsTest/PhysicsTest.cpp index 7697a53ab828..1aef4a2a94ec 100644 --- a/samples/Cpp/TestCpp/Classes/PhysicsTest/PhysicsTest.cpp +++ b/samples/Cpp/TestCpp/Classes/PhysicsTest/PhysicsTest.cpp @@ -396,7 +396,6 @@ void PhysicsDemo::onTouchMoved(Touch* touch, Event* event) if (it != _mouses.end()) { - it->second->getPhysicsBody()->setVelocity((touch->getLocation() - it->second->getPosition()) * 60.0f); it->second->setPosition(touch->getLocation()); } }