mirror of https://github.com/axmolengine/axmol.git
issue #2771: fix warning log and fix typo.
This commit is contained in:
parent
71966d8ca9
commit
69f1834e61
|
@ -555,7 +555,7 @@ void PhysicsBody::setVelocity(const Point& velocity)
|
||||||
{
|
{
|
||||||
if (!_dynamic)
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -581,7 +581,7 @@ void PhysicsBody::setAngularVelocity(float velocity)
|
||||||
{
|
{
|
||||||
if (!_dynamic)
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -396,7 +396,6 @@ void PhysicsDemo::onTouchMoved(Touch* touch, Event* event)
|
||||||
|
|
||||||
if (it != _mouses.end())
|
if (it != _mouses.end())
|
||||||
{
|
{
|
||||||
it->second->getPhysicsBody()->setVelocity((touch->getLocation() - it->second->getPosition()) * 60.0f);
|
|
||||||
it->second->setPosition(touch->getLocation());
|
it->second->setPosition(touch->getLocation());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue