Skip to content

Commit ed84ee0

Browse files
author
James Chen
committed
Merge pull request #4598 from boyu0/iss2771_physical
issue #2771: fix warning log and fix typo.
2 parents bbb658e + 5b1f54d commit ed84ee0

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

cocos/physics/CCPhysicsBody.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ void PhysicsBody::setVelocity(const Point& velocity)
555555
{
556556
if (!_dynamic)
557557
{
558-
CCLOG("physics warning: your cann't set velocity for a static body.");
558+
CCLOG("physics warning: your can't set velocity for a static body.");
559559
return;
560560
}
561561

@@ -581,7 +581,7 @@ void PhysicsBody::setAngularVelocity(float velocity)
581581
{
582582
if (!_dynamic)
583583
{
584-
CCLOG("physics warning: your cann't set angular velocity for a static body.");
584+
CCLOG("physics warning: your can't set angular velocity for a static body.");
585585
return;
586586
}
587587

samples/Cpp/TestCpp/Classes/PhysicsTest/PhysicsTest.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,6 @@ void PhysicsDemo::onTouchMoved(Touch* touch, Event* event)
396396

397397
if (it != _mouses.end())
398398
{
399-
it->second->getPhysicsBody()->setVelocity((touch->getLocation() - it->second->getPosition()) * 60.0f);
400399
it->second->setPosition(touch->getLocation());
401400
}
402401
}

0 commit comments

Comments
 (0)