Skip to content

Commit 3ed4605

Browse files
committed
feat: add noteice
1 parent b528617 commit 3ed4605

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/physics-physx/src/PhysXCharacterController.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export class PhysXCharacterController implements ICharacterController {
8686
* {@inheritDoc ICharacterController.addShape }
8787
*/
8888
addShape(shape: PhysXColliderShape): void {
89+
// When CharacterController is disabled, set shape property need check pxController whether exist because of this._pxManager is null and won't create pxController.
8990
this._pxManager && this._createPXController(this._pxManager, shape);
9091
this._shape = shape;
9192
shape._controllers.add(this);

0 commit comments

Comments
 (0)