@galacean/engine-physics-lite 1.4.14 → 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 +14 -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 +14 -8
- package/dist/main.js.map +1 -1
- package/dist/module.js +14 -8
- package/dist/module.js.map +1 -1
- package/package.json +4 -4
- package/types/LitePhysics.d.ts +4 -0
- package/types/LitePhysicsScene.d.ts +11 -7
package/dist/module.js
CHANGED
|
@@ -923,12 +923,12 @@ LiteSphereColliderShape._tempSphere = new BoundingSphere();
|
|
|
923
923
|
}
|
|
924
924
|
var _proto = LitePhysicsScene.prototype;
|
|
925
925
|
/**
|
|
926
|
-
* {@inheritDoc
|
|
926
|
+
* {@inheritDoc IPhysicsScene.setGravity }
|
|
927
927
|
*/ _proto.setGravity = function setGravity(value) {
|
|
928
928
|
console.log("Physics-lite don't support gravity. Use Physics-PhysX instead!");
|
|
929
929
|
};
|
|
930
930
|
/**
|
|
931
|
-
* {@inheritDoc
|
|
931
|
+
* {@inheritDoc IPhysicsScene.addCollider }
|
|
932
932
|
*/ _proto.addCollider = function addCollider(actor) {
|
|
933
933
|
actor._scene = this;
|
|
934
934
|
var colliders = actor._isStaticCollider ? this._staticColliders : this._dynamicColliders;
|
|
@@ -939,7 +939,7 @@ LiteSphereColliderShape._tempSphere = new BoundingSphere();
|
|
|
939
939
|
}
|
|
940
940
|
};
|
|
941
941
|
/**
|
|
942
|
-
* {@inheritDoc
|
|
942
|
+
* {@inheritDoc IPhysicsScene.removeCollider }
|
|
943
943
|
*/ _proto.removeCollider = function removeCollider(collider) {
|
|
944
944
|
collider._scene = null;
|
|
945
945
|
var colliders = collider._isStaticCollider ? this._staticColliders : this._dynamicColliders;
|
|
@@ -951,7 +951,7 @@ LiteSphereColliderShape._tempSphere = new BoundingSphere();
|
|
|
951
951
|
}
|
|
952
952
|
};
|
|
953
953
|
/**
|
|
954
|
-
* {@inheritDoc
|
|
954
|
+
* {@inheritDoc IPhysicsScene.update }
|
|
955
955
|
*/ _proto.update = function update(deltaTime) {
|
|
956
956
|
var dynamicColliders = this._dynamicColliders;
|
|
957
957
|
for(var i = 0, len = dynamicColliders.length; i < len; i++){
|
|
@@ -962,7 +962,7 @@ LiteSphereColliderShape._tempSphere = new BoundingSphere();
|
|
|
962
962
|
this._fireEvent();
|
|
963
963
|
};
|
|
964
964
|
/**
|
|
965
|
-
* {@inheritDoc
|
|
965
|
+
* {@inheritDoc IPhysicsScene.raycast }
|
|
966
966
|
*/ _proto.raycast = function raycast(ray, distance, onRaycast, hit) {
|
|
967
967
|
if (!hit) {
|
|
968
968
|
return this._raycast(ray, distance, onRaycast, this._staticColliders, hit) || this._raycast(ray, distance, onRaycast, this._dynamicColliders, hit);
|
|
@@ -986,16 +986,19 @@ LiteSphereColliderShape._tempSphere = new BoundingSphere();
|
|
|
986
986
|
}
|
|
987
987
|
};
|
|
988
988
|
/**
|
|
989
|
-
* {@inheritDoc
|
|
989
|
+
* {@inheritDoc IPhysicsScene.addCharacterController }
|
|
990
990
|
*/ _proto.addCharacterController = function addCharacterController(characterController) {
|
|
991
991
|
throw "Physics-lite don't support addCharacterController. Use Physics-PhysX instead!";
|
|
992
992
|
};
|
|
993
993
|
/**
|
|
994
|
-
* {@inheritDoc
|
|
994
|
+
* {@inheritDoc IPhysicsScene.removeCharacterController }
|
|
995
995
|
*/ _proto.removeCharacterController = function removeCharacterController(characterController) {
|
|
996
996
|
throw "Physics-lite don't support removeCharacterController. Use Physics-PhysX instead!";
|
|
997
997
|
};
|
|
998
998
|
/**
|
|
999
|
+
* {@inheritDoc IPhysicsScene.destroy }
|
|
1000
|
+
*/ _proto.destroy = function destroy() {};
|
|
1001
|
+
/**
|
|
999
1002
|
* @internal
|
|
1000
1003
|
*/ _proto._addColliderShape = function _addColliderShape(colliderShape) {
|
|
1001
1004
|
this._eventMap[colliderShape._id] = {};
|
|
@@ -1275,11 +1278,14 @@ var LitePhysics = /*#__PURE__*/ function() {
|
|
|
1275
1278
|
*/ _proto.createSpringJoint = function createSpringJoint(collider) {
|
|
1276
1279
|
throw "Physics-lite don't support CapsuleColliderShape. Use Physics-PhysX instead!";
|
|
1277
1280
|
};
|
|
1281
|
+
/**
|
|
1282
|
+
* {@inheritDoc IPhysics.destroy }
|
|
1283
|
+
*/ _proto.destroy = function destroy() {};
|
|
1278
1284
|
return LitePhysics;
|
|
1279
1285
|
}();
|
|
1280
1286
|
|
|
1281
1287
|
//@ts-ignore
|
|
1282
|
-
var version = "1.4.
|
|
1288
|
+
var version = "1.4.16";
|
|
1283
1289
|
console.log("Galacean Engine Physics Lite Version: " + version);
|
|
1284
1290
|
|
|
1285
1291
|
export { LitePhysics, version };
|