From 5b1f54db208426d7f2eff9b1aaa10275c53cacb0 Mon Sep 17 00:00:00 2001 From: boyu0 Date: Mon, 23 Dec 2013 14:30:43 +0800 Subject: [PATCH] issue #2771: fix warning log and fix typo. --- cocos/physics/CCPhysicsBody.cpp | 4 ++-- samples/Cpp/TestCpp/Classes/PhysicsTest/PhysicsTest.cpp | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) 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()); } }