From e41fd1a29b6ff5a8727a260c5672a7acabd4a084 Mon Sep 17 00:00:00 2001 From: zukkun Date: Tue, 1 Apr 2014 09:34:42 +0900 Subject: [PATCH] fixed PhysicsBody::setAngularVelocityLimit incorrect function call --- cocos/physics/CCPhysicsBody.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/physics/CCPhysicsBody.cpp b/cocos/physics/CCPhysicsBody.cpp index 34c1c51ed6..3d0203e8f5 100644 --- a/cocos/physics/CCPhysicsBody.cpp +++ b/cocos/physics/CCPhysicsBody.cpp @@ -623,7 +623,7 @@ float PhysicsBody::getVelocityLimit() void PhysicsBody::setAngularVelocityLimit(float limit) { - cpBodySetVelLimit(_info->getBody(), PhysicsHelper::float2cpfloat(limit)); + cpBodySetAngVelLimit(_info->getBody(), PhysicsHelper::float2cpfloat(limit)); } float PhysicsBody::getAngularVelocityLimit()