issue #2771: fix warning log and fix typo.

This commit is contained in:
boyu0 2013-12-23 14:30:43 +08:00
parent 71966d8ca9
commit 69f1834e61
2 changed files with 2 additions and 3 deletions

View File

@ -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;
}

View File

@ -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());
}
}