mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
fixed rigidbody allowSleep
This commit is contained in:
@@ -213,7 +213,7 @@ var RigidBody = cc.Class({
|
||||
this._allowSleep = value;
|
||||
|
||||
if (this._b2Body) {
|
||||
this._b2Body.SetAllowSleeping(value);
|
||||
this._b2Body.SetSleepingAllowed(value);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user