@galacean/engine-physics-lite 1.4.15 → 1.4.16

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.
package/dist/browser.js CHANGED
@@ -927,12 +927,12 @@
927
927
  }
928
928
  var _proto = LitePhysicsScene.prototype;
929
929
  /**
930
- * {@inheritDoc IPhysicsManager.setGravity }
930
+ * {@inheritDoc IPhysicsScene.setGravity }
931
931
  */ _proto.setGravity = function setGravity(value) {
932
932
  console.log("Physics-lite don't support gravity. Use Physics-PhysX instead!");
933
933
  };
934
934
  /**
935
- * {@inheritDoc IPhysicsManager.addCollider }
935
+ * {@inheritDoc IPhysicsScene.addCollider }
936
936
  */ _proto.addCollider = function addCollider(actor) {
937
937
  actor._scene = this;
938
938
  var colliders = actor._isStaticCollider ? this._staticColliders : this._dynamicColliders;
@@ -943,7 +943,7 @@
943
943
  }
944
944
  };
945
945
  /**
946
- * {@inheritDoc IPhysicsManager.removeCollider }
946
+ * {@inheritDoc IPhysicsScene.removeCollider }
947
947
  */ _proto.removeCollider = function removeCollider(collider) {
948
948
  collider._scene = null;
949
949
  var colliders = collider._isStaticCollider ? this._staticColliders : this._dynamicColliders;
@@ -955,7 +955,7 @@
955
955
  }
956
956
  };
957
957
  /**
958
- * {@inheritDoc IPhysicsManager.update }
958
+ * {@inheritDoc IPhysicsScene.update }
959
959
  */ _proto.update = function update(deltaTime) {
960
960
  var dynamicColliders = this._dynamicColliders;
961
961
  for(var i = 0, len = dynamicColliders.length; i < len; i++){
@@ -966,7 +966,7 @@
966
966
  this._fireEvent();
967
967
  };
968
968
  /**
969
- * {@inheritDoc IPhysicsManager.raycast }
969
+ * {@inheritDoc IPhysicsScene.raycast }
970
970
  */ _proto.raycast = function raycast(ray, distance, onRaycast, hit) {
971
971
  if (!hit) {
972
972
  return this._raycast(ray, distance, onRaycast, this._staticColliders, hit) || this._raycast(ray, distance, onRaycast, this._dynamicColliders, hit);
@@ -990,16 +990,19 @@
990
990
  }
991
991
  };
992
992
  /**
993
- * {@inheritDoc IPhysicsManager.addCharacterController }
993
+ * {@inheritDoc IPhysicsScene.addCharacterController }
994
994
  */ _proto.addCharacterController = function addCharacterController(characterController) {
995
995
  throw "Physics-lite don't support addCharacterController. Use Physics-PhysX instead!";
996
996
  };
997
997
  /**
998
- * {@inheritDoc IPhysicsManager.removeCharacterController }
998
+ * {@inheritDoc IPhysicsScene.removeCharacterController }
999
999
  */ _proto.removeCharacterController = function removeCharacterController(characterController) {
1000
1000
  throw "Physics-lite don't support removeCharacterController. Use Physics-PhysX instead!";
1001
1001
  };
1002
1002
  /**
1003
+ * {@inheritDoc IPhysicsScene.destroy }
1004
+ */ _proto.destroy = function destroy() {};
1005
+ /**
1003
1006
  * @internal
1004
1007
  */ _proto._addColliderShape = function _addColliderShape(colliderShape) {
1005
1008
  this._eventMap[colliderShape._id] = {};
@@ -1279,11 +1282,14 @@
1279
1282
  */ _proto.createSpringJoint = function createSpringJoint(collider) {
1280
1283
  throw "Physics-lite don't support CapsuleColliderShape. Use Physics-PhysX instead!";
1281
1284
  };
1285
+ /**
1286
+ * {@inheritDoc IPhysics.destroy }
1287
+ */ _proto.destroy = function destroy() {};
1282
1288
  return LitePhysics;
1283
1289
  }();
1284
1290
 
1285
1291
  //@ts-ignore
1286
- var version = "1.4.15";
1292
+ var version = "1.4.16";
1287
1293
  console.log("Galacean Engine Physics Lite Version: " + version);
1288
1294
 
1289
1295
  exports.LitePhysics = LitePhysics;