@galacean/engine-physics-lite 1.5.14 → 1.6.0-alpha.1
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 +47 -8
- package/dist/browser.js.map +1 -1
- package/dist/browser.min.js +1 -1
- package/dist/browser.min.js.map +1 -1
- package/dist/main.js +47 -8
- package/dist/main.js.map +1 -1
- package/dist/module.js +47 -8
- package/dist/module.js.map +1 -1
- package/package.json +4 -4
- package/types/LitePhysicsScene.d.ts +28 -1
package/dist/main.js
CHANGED
|
@@ -933,6 +933,15 @@ LiteSphereColliderShape._tempSphere = new engine.BoundingSphere();
|
|
|
933
933
|
this._onTriggerStay = onTriggerStay;
|
|
934
934
|
}
|
|
935
935
|
var _proto = LitePhysicsScene.prototype;
|
|
936
|
+
_proto.overlapBox = function overlapBox(center, orientation, halfExtents, onOverlap, outHitResult) {
|
|
937
|
+
throw new Error("Method not implemented.");
|
|
938
|
+
};
|
|
939
|
+
_proto.overlapSphere = function overlapSphere(center, radius, onOverlap, outHitResult) {
|
|
940
|
+
throw new Error("Method not implemented.");
|
|
941
|
+
};
|
|
942
|
+
_proto.overlapCapsule = function overlapCapsule(center, radius, height, orientation, onOverlap, outHitResult) {
|
|
943
|
+
throw new Error("Method not implemented.");
|
|
944
|
+
};
|
|
936
945
|
/**
|
|
937
946
|
* {@inheritDoc IPhysicsScene.setGravity }
|
|
938
947
|
*/ _proto.setGravity = function setGravity(value) {
|
|
@@ -999,12 +1008,42 @@ LiteSphereColliderShape._tempSphere = new engine.BoundingSphere();
|
|
|
999
1008
|
/**
|
|
1000
1009
|
* {@inheritDoc IPhysicsScene.addCharacterController }
|
|
1001
1010
|
*/ _proto.addCharacterController = function addCharacterController(characterController) {
|
|
1002
|
-
throw "Physics-lite
|
|
1011
|
+
throw new Error("Physics-lite doesn't support addCharacterController. Use Physics-PhysX instead!");
|
|
1003
1012
|
};
|
|
1004
1013
|
/**
|
|
1005
1014
|
* {@inheritDoc IPhysicsScene.removeCharacterController }
|
|
1006
1015
|
*/ _proto.removeCharacterController = function removeCharacterController(characterController) {
|
|
1007
|
-
throw "Physics-lite
|
|
1016
|
+
throw new Error("Physics-lite doesn't support removeCharacterController. Use Physics-PhysX instead!");
|
|
1017
|
+
};
|
|
1018
|
+
/**
|
|
1019
|
+
* {@inheritDoc IPhysicsScene.boxCast }
|
|
1020
|
+
*/ _proto.boxCast = function boxCast(center, orientation, halfExtents, direction, distance, onSweep, outHitResult) {
|
|
1021
|
+
throw new Error("Physics-lite doesn't support boxCast. Use Physics-PhysX instead!");
|
|
1022
|
+
};
|
|
1023
|
+
/**
|
|
1024
|
+
* {@inheritDoc IPhysicsScene.sphereCast }
|
|
1025
|
+
*/ _proto.sphereCast = function sphereCast(center, radius, direction, distance, onSweep, outHitResult) {
|
|
1026
|
+
throw new Error("Physics-lite doesn't support sphereCast. Use Physics-PhysX instead!");
|
|
1027
|
+
};
|
|
1028
|
+
/**
|
|
1029
|
+
* {@inheritDoc IPhysicsScene.capsuleCast }
|
|
1030
|
+
*/ _proto.capsuleCast = function capsuleCast(center, radius, height, orientation, direction, distance, onSweep, outHitResult) {
|
|
1031
|
+
throw new Error("Physics-lite doesn't support capsuleCast. Use Physics-PhysX instead!");
|
|
1032
|
+
};
|
|
1033
|
+
/**
|
|
1034
|
+
* {@inheritDoc IPhysicsScene.overlapBoxAll }
|
|
1035
|
+
*/ _proto.overlapBoxAll = function overlapBoxAll(center, orientation, halfExtents, onOverlap) {
|
|
1036
|
+
throw new Error("Physics-lite doesn't support overlapBoxAll. Use Physics-PhysX instead!");
|
|
1037
|
+
};
|
|
1038
|
+
/**
|
|
1039
|
+
* {@inheritDoc IPhysicsScene.overlapSphereAll }
|
|
1040
|
+
*/ _proto.overlapSphereAll = function overlapSphereAll(center, radius, onOverlap) {
|
|
1041
|
+
throw new Error("Physics-lite doesn't support overlapSphereAll. Use Physics-PhysX instead!");
|
|
1042
|
+
};
|
|
1043
|
+
/**
|
|
1044
|
+
* {@inheritDoc IPhysicsScene.overlapCapsuleAll }
|
|
1045
|
+
*/ _proto.overlapCapsuleAll = function overlapCapsuleAll(center, radius, height, orientation, onOverlap) {
|
|
1046
|
+
throw new Error("Physics-lite doesn't support overlapCapsuleAll. Use Physics-PhysX instead!");
|
|
1008
1047
|
};
|
|
1009
1048
|
/**
|
|
1010
1049
|
* {@inheritDoc IPhysicsScene.destroy }
|
|
@@ -1287,27 +1326,27 @@ var LitePhysics = /*#__PURE__*/ function() {
|
|
|
1287
1326
|
/**
|
|
1288
1327
|
* {@inheritDoc IPhysics.createPlaneColliderShape }
|
|
1289
1328
|
*/ _proto.createPlaneColliderShape = function createPlaneColliderShape(uniqueID, material) {
|
|
1290
|
-
throw "Physics-lite
|
|
1329
|
+
throw new Error("Physics-lite doesn't support PlaneColliderShape. Use Physics-PhysX instead!");
|
|
1291
1330
|
};
|
|
1292
1331
|
/**
|
|
1293
1332
|
* {@inheritDoc IPhysics.createCapsuleColliderShape }
|
|
1294
1333
|
*/ _proto.createCapsuleColliderShape = function createCapsuleColliderShape(uniqueID, radius, height, material) {
|
|
1295
|
-
throw "Physics-lite
|
|
1334
|
+
throw new Error("Physics-lite doesn't support CapsuleColliderShape. Use Physics-PhysX instead!");
|
|
1296
1335
|
};
|
|
1297
1336
|
/**
|
|
1298
1337
|
* {@inheritDoc IPhysics.createFixedJoint }
|
|
1299
1338
|
*/ _proto.createFixedJoint = function createFixedJoint(collider) {
|
|
1300
|
-
throw "Physics-lite
|
|
1339
|
+
throw new Error("Physics-lite doesn't support FixedJoint. Use Physics-PhysX instead!");
|
|
1301
1340
|
};
|
|
1302
1341
|
/**
|
|
1303
1342
|
* {@inheritDoc IPhysics.createHingeJoint }
|
|
1304
1343
|
*/ _proto.createHingeJoint = function createHingeJoint(collider) {
|
|
1305
|
-
throw "Physics-lite
|
|
1344
|
+
throw new Error("Physics-lite doesn't support HingeJoint. Use Physics-PhysX instead!");
|
|
1306
1345
|
};
|
|
1307
1346
|
/**
|
|
1308
1347
|
* {@inheritDoc IPhysics.createSpringJoint }
|
|
1309
1348
|
*/ _proto.createSpringJoint = function createSpringJoint(collider) {
|
|
1310
|
-
throw "Physics-lite
|
|
1349
|
+
throw new Error("Physics-lite doesn't support SpringJoint. Use Physics-PhysX instead!");
|
|
1311
1350
|
};
|
|
1312
1351
|
/**
|
|
1313
1352
|
* {@inheritDoc IPhysics.setColliderLayer }
|
|
@@ -1350,7 +1389,7 @@ var LitePhysics = /*#__PURE__*/ function() {
|
|
|
1350
1389
|
}();
|
|
1351
1390
|
|
|
1352
1391
|
//@ts-ignore
|
|
1353
|
-
var version = "1.
|
|
1392
|
+
var version = "1.6.0-alpha.1";
|
|
1354
1393
|
console.log("Galacean Engine Physics Lite Version: " + version);
|
|
1355
1394
|
|
|
1356
1395
|
exports.LitePhysics = LitePhysics;
|