@galacean/engine-physics-physx 0.9.8 → 0.9.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11480,6 +11480,7 @@ var MeshModifyFlags;
11480
11480
  var subDataDirtyFlags = this._subDataDirtyFlags;
11481
11481
  var blendShapeFloatStride = this._vertexElementCount * 3;
11482
11482
  var blendShapeByteStride = blendShapeFloatStride * 4;
11483
+ var bufferOffset = this._bufferBindingOffset;
11483
11484
  // @todo: should fix bug when dataChangedFlag is true
11484
11485
  for(var i = 0, n = blendShapes.length; i < n; i++){
11485
11486
  var dataChangedFlag = subDataDirtyFlags[i];
@@ -11497,7 +11498,7 @@ var MeshModifyFlags;
11497
11498
  var offset = indexInBuffer * blendShapeFloatStride;
11498
11499
  var storeInfo = storeInfos[i];
11499
11500
  storeInfo || (storeInfos[i] = storeInfo = new miniprogram$7.Vector2());
11500
- storeInfo.set(bufferIndex + 1, indexInBuffer * blendShapeByteStride); // BlendShape buffer is start from 1
11501
+ storeInfo.set(bufferOffset + bufferIndex, indexInBuffer * blendShapeByteStride); // BufferOffset is mesh vertexBuffer offset
11501
11502
  var deltaPositions = endFrame.deltaPositions;
11502
11503
  for(var j = 0; j < vertexCount; j++){
11503
11504
  var start = offset + bufferFloatStride * j;
@@ -35853,7 +35854,7 @@ function _interopNamespace(e) {
35853
35854
  }
35854
35855
  var CoreObjects__namespace = /*#__PURE__*/ _interopNamespace(CoreObjects);
35855
35856
  //@ts-ignore
35856
- var version = "0.9.8";
35857
+ var version = "0.9.9";
35857
35858
  console.log("Galacean engine version: " + version);
35858
35859
  for(var key in CoreObjects__namespace){
35859
35860
  CoreObjects.Loader.registerClass(key, CoreObjects__namespace[key]);
@@ -36821,7 +36822,6 @@ var CollisionDetectionMode;
36821
36822
  characterController._createPXController(this, shape);
36822
36823
  }
36823
36824
  }
36824
- this._pxScene.addController(characterController._pxController);
36825
36825
  }
36826
36826
  characterController._pxManager = this;
36827
36827
  };
package/dist/module.js CHANGED
@@ -985,7 +985,6 @@ var CollisionDetectionMode;
985
985
  characterController._createPXController(this, shape);
986
986
  }
987
987
  }
988
- this._pxScene.addController(characterController._pxController);
989
988
  }
990
989
  characterController._pxManager = this;
991
990
  };