Skip to content

Commit

Permalink
change physics 3d enable to enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnylanwanjun committed Jan 6, 2020
1 parent a1ae1b0 commit f424886
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cocos2d/core/3d/physics/framework/physics-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ export class Physics3DManager {
* Gets or sets whether to enable physical systems, which are not enabled by default.
* !#zh
* 获取或设置是否启用物理系统,默认不启用。
* @property {boolean} enable
* @property {boolean} enabled
*/
get enable (): boolean {
return this._enable;
get enabled (): boolean {
return this._enabled;
}
set enable (value: boolean) {
this._enable = value;
set enabled (value: boolean) {
this._enabled = value;
}

/**
Expand Down Expand Up @@ -147,7 +147,7 @@ export class Physics3DManager {
readonly raycastResults: PhysicsRayResult[] = [];

@property
private _enable = false;
private _enabled = false;

@property
private _allowSleep = true;
Expand Down Expand Up @@ -202,7 +202,7 @@ export class Physics3DManager {
if (CC_EDITOR) {
return;
}
if (!this._enable) {
if (!this._enabled) {
return;
}

Expand Down

0 comments on commit f424886

Please sign in to comment.