@galacean/engine-physics-lite 1.5.14 → 1.6.0-alpha.0

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/module.js CHANGED
@@ -929,6 +929,15 @@ LiteSphereColliderShape._tempSphere = new BoundingSphere();
929
929
  this._onTriggerStay = onTriggerStay;
930
930
  }
931
931
  var _proto = LitePhysicsScene.prototype;
932
+ _proto.overlapBox = function overlapBox(center, orientation, halfExtents, onOverlap, outHitResult) {
933
+ throw new Error("Method not implemented.");
934
+ };
935
+ _proto.overlapSphere = function overlapSphere(center, radius, onOverlap, outHitResult) {
936
+ throw new Error("Method not implemented.");
937
+ };
938
+ _proto.overlapCapsule = function overlapCapsule(center, radius, height, orientation, onOverlap, outHitResult) {
939
+ throw new Error("Method not implemented.");
940
+ };
932
941
  /**
933
942
  * {@inheritDoc IPhysicsScene.setGravity }
934
943
  */ _proto.setGravity = function setGravity(value) {
@@ -995,12 +1004,42 @@ LiteSphereColliderShape._tempSphere = new BoundingSphere();
995
1004
  /**
996
1005
  * {@inheritDoc IPhysicsScene.addCharacterController }
997
1006
  */ _proto.addCharacterController = function addCharacterController(characterController) {
998
- throw "Physics-lite don't support addCharacterController. Use Physics-PhysX instead!";
1007
+ throw new Error("Physics-lite doesn't support addCharacterController. Use Physics-PhysX instead!");
999
1008
  };
1000
1009
  /**
1001
1010
  * {@inheritDoc IPhysicsScene.removeCharacterController }
1002
1011
  */ _proto.removeCharacterController = function removeCharacterController(characterController) {
1003
- throw "Physics-lite don't support removeCharacterController. Use Physics-PhysX instead!";
1012
+ throw new Error("Physics-lite doesn't support removeCharacterController. Use Physics-PhysX instead!");
1013
+ };
1014
+ /**
1015
+ * {@inheritDoc IPhysicsScene.boxCast }
1016
+ */ _proto.boxCast = function boxCast(center, orientation, halfExtents, direction, distance, onSweep, outHitResult) {
1017
+ throw new Error("Physics-lite doesn't support boxCast. Use Physics-PhysX instead!");
1018
+ };
1019
+ /**
1020
+ * {@inheritDoc IPhysicsScene.sphereCast }
1021
+ */ _proto.sphereCast = function sphereCast(center, radius, direction, distance, onSweep, outHitResult) {
1022
+ throw new Error("Physics-lite doesn't support sphereCast. Use Physics-PhysX instead!");
1023
+ };
1024
+ /**
1025
+ * {@inheritDoc IPhysicsScene.capsuleCast }
1026
+ */ _proto.capsuleCast = function capsuleCast(center, radius, height, orientation, direction, distance, onSweep, outHitResult) {
1027
+ throw new Error("Physics-lite doesn't support capsuleCast. Use Physics-PhysX instead!");
1028
+ };
1029
+ /**
1030
+ * {@inheritDoc IPhysicsScene.overlapBoxAll }
1031
+ */ _proto.overlapBoxAll = function overlapBoxAll(center, orientation, halfExtents, onOverlap) {
1032
+ throw new Error("Physics-lite doesn't support overlapBoxAll. Use Physics-PhysX instead!");
1033
+ };
1034
+ /**
1035
+ * {@inheritDoc IPhysicsScene.overlapSphereAll }
1036
+ */ _proto.overlapSphereAll = function overlapSphereAll(center, radius, onOverlap) {
1037
+ throw new Error("Physics-lite doesn't support overlapSphereAll. Use Physics-PhysX instead!");
1038
+ };
1039
+ /**
1040
+ * {@inheritDoc IPhysicsScene.overlapCapsuleAll }
1041
+ */ _proto.overlapCapsuleAll = function overlapCapsuleAll(center, radius, height, orientation, onOverlap) {
1042
+ throw new Error("Physics-lite doesn't support overlapCapsuleAll. Use Physics-PhysX instead!");
1004
1043
  };
1005
1044
  /**
1006
1045
  * {@inheritDoc IPhysicsScene.destroy }
@@ -1283,27 +1322,27 @@ var LitePhysics = /*#__PURE__*/ function() {
1283
1322
  /**
1284
1323
  * {@inheritDoc IPhysics.createPlaneColliderShape }
1285
1324
  */ _proto.createPlaneColliderShape = function createPlaneColliderShape(uniqueID, material) {
1286
- throw "Physics-lite don't support PlaneColliderShape. Use Physics-PhysX instead!";
1325
+ throw new Error("Physics-lite doesn't support PlaneColliderShape. Use Physics-PhysX instead!");
1287
1326
  };
1288
1327
  /**
1289
1328
  * {@inheritDoc IPhysics.createCapsuleColliderShape }
1290
1329
  */ _proto.createCapsuleColliderShape = function createCapsuleColliderShape(uniqueID, radius, height, material) {
1291
- throw "Physics-lite don't support CapsuleColliderShape. Use Physics-PhysX instead!";
1330
+ throw new Error("Physics-lite doesn't support CapsuleColliderShape. Use Physics-PhysX instead!");
1292
1331
  };
1293
1332
  /**
1294
1333
  * {@inheritDoc IPhysics.createFixedJoint }
1295
1334
  */ _proto.createFixedJoint = function createFixedJoint(collider) {
1296
- throw "Physics-lite don't support CapsuleColliderShape. Use Physics-PhysX instead!";
1335
+ throw new Error("Physics-lite doesn't support FixedJoint. Use Physics-PhysX instead!");
1297
1336
  };
1298
1337
  /**
1299
1338
  * {@inheritDoc IPhysics.createHingeJoint }
1300
1339
  */ _proto.createHingeJoint = function createHingeJoint(collider) {
1301
- throw "Physics-lite don't support CapsuleColliderShape. Use Physics-PhysX instead!";
1340
+ throw new Error("Physics-lite doesn't support HingeJoint. Use Physics-PhysX instead!");
1302
1341
  };
1303
1342
  /**
1304
1343
  * {@inheritDoc IPhysics.createSpringJoint }
1305
1344
  */ _proto.createSpringJoint = function createSpringJoint(collider) {
1306
- throw "Physics-lite don't support CapsuleColliderShape. Use Physics-PhysX instead!";
1345
+ throw new Error("Physics-lite doesn't support SpringJoint. Use Physics-PhysX instead!");
1307
1346
  };
1308
1347
  /**
1309
1348
  * {@inheritDoc IPhysics.setColliderLayer }
@@ -1346,7 +1385,7 @@ var LitePhysics = /*#__PURE__*/ function() {
1346
1385
  }();
1347
1386
 
1348
1387
  //@ts-ignore
1349
- var version = "1.5.14";
1388
+ var version = "1.6.0-alpha.0";
1350
1389
  console.log("Galacean Engine Physics Lite Version: " + version);
1351
1390
 
1352
1391
  export { LitePhysics, version };