We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c455bd4 commit e1b607eCopy full SHA for e1b607e
cocos/physics/CCPhysicsBody.cpp
@@ -345,7 +345,7 @@ void PhysicsBody::setPosition(Point position)
345
346
void PhysicsBody::setRotation(float rotation)
347
{
348
- cpBodySetAngle(_info->getBody(), PhysicsHelper::float2cpfloat(rotation * M_PI / 180.0f));
+ cpBodySetAngle(_info->getBody(), -PhysicsHelper::float2cpfloat(rotation * M_PI / 180.0f));
349
}
350
351
Point PhysicsBody::getPosition() const
0 commit comments