mirror of https://github.com/axmolengine/axmol.git
fixed PhysicsBody::setAngularVelocityLimit incorrect function call
This commit is contained in:
parent
f4a7da8457
commit
e41fd1a29b
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue