Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cocos/physics/CCPhysicsBody.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

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

Expand Down
1 change: 0 additions & 1 deletion samples/Cpp/TestCpp/Classes/PhysicsTest/PhysicsTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
Expand Down