@galacean/engine-physics-lite 0.9.0-beta.82 → 0.9.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/browser.js +60 -48
- package/dist/main.js +60 -48
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +1328 -981
- package/dist/module.js +60 -48
- package/dist/module.js.map +1 -1
- package/package.json +4 -4
package/dist/module.js
CHANGED
|
@@ -22,56 +22,48 @@ function __decorate(decorators, target, key, desc) {
|
|
|
22
22
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
function
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
return o;
|
|
29
|
-
};
|
|
25
|
+
function _set_prototype_of(o, p) {
|
|
26
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
27
|
+
o.__proto__ = p;
|
|
30
28
|
|
|
31
|
-
|
|
32
|
-
}
|
|
29
|
+
return o;
|
|
30
|
+
};
|
|
33
31
|
|
|
34
|
-
|
|
35
|
-
return setPrototypeOf(o, p);
|
|
32
|
+
return _set_prototype_of(o, p);
|
|
36
33
|
}
|
|
37
34
|
|
|
38
35
|
function _inherits(subClass, superClass) {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
44
|
-
constructor: {
|
|
45
|
-
value: subClass,
|
|
46
|
-
writable: true,
|
|
47
|
-
configurable: true
|
|
36
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
37
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
48
38
|
}
|
|
49
|
-
|
|
50
|
-
|
|
39
|
+
|
|
40
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });
|
|
41
|
+
|
|
42
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
51
43
|
}
|
|
52
44
|
|
|
53
45
|
function _defineProperties(target, props) {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
46
|
+
for (var i = 0; i < props.length; i++) {
|
|
47
|
+
var descriptor = props[i];
|
|
48
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
49
|
+
descriptor.configurable = true;
|
|
50
|
+
|
|
51
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
52
|
+
|
|
53
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
54
|
+
}
|
|
61
55
|
}
|
|
56
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
57
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
58
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
62
59
|
|
|
63
|
-
|
|
64
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
65
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
66
|
-
return Constructor;
|
|
60
|
+
return Constructor;
|
|
67
61
|
}
|
|
68
62
|
|
|
69
63
|
function _instanceof(left, right) {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
return left instanceof right;
|
|
74
|
-
}
|
|
64
|
+
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
65
|
+
return !!right[Symbol.hasInstance](left);
|
|
66
|
+
} else return left instanceof right;
|
|
75
67
|
}
|
|
76
68
|
|
|
77
69
|
/**
|
|
@@ -202,8 +194,12 @@ function _instanceof(left, right) {
|
|
|
202
194
|
};
|
|
203
195
|
return LiteColliderShape;
|
|
204
196
|
}();
|
|
205
|
-
|
|
206
|
-
LiteColliderShape.
|
|
197
|
+
(function() {
|
|
198
|
+
LiteColliderShape._ray = new Ray();
|
|
199
|
+
})();
|
|
200
|
+
(function() {
|
|
201
|
+
LiteColliderShape._tempPoint = new Vector3();
|
|
202
|
+
})();
|
|
207
203
|
|
|
208
204
|
/**
|
|
209
205
|
* Used to implement transformation related functions.
|
|
@@ -346,7 +342,7 @@ LiteColliderShape._tempPoint = new Vector3();
|
|
|
346
342
|
this._dirtyFlag |= type;
|
|
347
343
|
this._updateFlagManager.distribute();
|
|
348
344
|
};
|
|
349
|
-
|
|
345
|
+
_create_class(LiteTransform, [
|
|
350
346
|
{
|
|
351
347
|
key: "owner",
|
|
352
348
|
set: function set(value) {
|
|
@@ -495,8 +491,12 @@ LiteColliderShape._tempPoint = new Vector3();
|
|
|
495
491
|
]);
|
|
496
492
|
return LiteTransform;
|
|
497
493
|
}();
|
|
498
|
-
|
|
499
|
-
LiteTransform.
|
|
494
|
+
(function() {
|
|
495
|
+
LiteTransform._tempQuat0 = new Quaternion();
|
|
496
|
+
})();
|
|
497
|
+
(function() {
|
|
498
|
+
LiteTransform._tempMat42 = new Matrix();
|
|
499
|
+
})();
|
|
500
500
|
var /**
|
|
501
501
|
* Dirty flag of transform.
|
|
502
502
|
*/ TransformFlag;
|
|
@@ -801,7 +801,9 @@ var /**
|
|
|
801
801
|
};
|
|
802
802
|
return LiteBoxColliderShape;
|
|
803
803
|
}(LiteColliderShape);
|
|
804
|
-
|
|
804
|
+
(function() {
|
|
805
|
+
LiteBoxColliderShape._tempBox = new BoundingBox();
|
|
806
|
+
})();
|
|
805
807
|
|
|
806
808
|
/**
|
|
807
809
|
* Sphere collider shape in Lite.
|
|
@@ -841,7 +843,7 @@ LiteBoxColliderShape._tempBox = new BoundingBox();
|
|
|
841
843
|
return false;
|
|
842
844
|
}
|
|
843
845
|
};
|
|
844
|
-
|
|
846
|
+
_create_class(LiteSphereColliderShape, [
|
|
845
847
|
{
|
|
846
848
|
key: "worldRadius",
|
|
847
849
|
get: function get() {
|
|
@@ -851,7 +853,9 @@ LiteBoxColliderShape._tempBox = new BoundingBox();
|
|
|
851
853
|
]);
|
|
852
854
|
return LiteSphereColliderShape;
|
|
853
855
|
}(LiteColliderShape);
|
|
854
|
-
|
|
856
|
+
(function() {
|
|
857
|
+
LiteSphereColliderShape._tempSphere = new BoundingSphere();
|
|
858
|
+
})();
|
|
855
859
|
|
|
856
860
|
/**
|
|
857
861
|
* A manager is a collection of colliders and constraints which can interact.
|
|
@@ -1103,10 +1107,18 @@ LiteSphereColliderShape._tempSphere = new BoundingSphere();
|
|
|
1103
1107
|
};
|
|
1104
1108
|
return LitePhysicsManager;
|
|
1105
1109
|
}();
|
|
1106
|
-
|
|
1107
|
-
LitePhysicsManager.
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
+
(function() {
|
|
1111
|
+
LitePhysicsManager._tempSphere = new BoundingSphere();
|
|
1112
|
+
})();
|
|
1113
|
+
(function() {
|
|
1114
|
+
LitePhysicsManager._tempBox = new BoundingBox();
|
|
1115
|
+
})();
|
|
1116
|
+
(function() {
|
|
1117
|
+
LitePhysicsManager._currentHit = new LiteHitResult();
|
|
1118
|
+
})();
|
|
1119
|
+
(function() {
|
|
1120
|
+
LitePhysicsManager._hitResult = new LiteHitResult();
|
|
1121
|
+
})();
|
|
1110
1122
|
var /**
|
|
1111
1123
|
* Physics state
|
|
1112
1124
|
*/ TriggerEventState;
|