@galacean/engine-physics-physx 0.9.0-beta.82 → 0.9.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/module.js CHANGED
@@ -1,11 +1,9 @@
1
1
  import { Vector3, Quaternion } from '@galacean/engine';
2
2
 
3
3
  function _instanceof(left, right) {
4
- if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
5
- return !!right[Symbol.hasInstance](left);
6
- } else {
7
- return left instanceof right;
8
- }
4
+ if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
5
+ return !!right[Symbol.hasInstance](left);
6
+ } else return left instanceof right;
9
7
  }
10
8
 
11
9
  /******************************************************************************
@@ -39,32 +37,24 @@ function __decorate(decorators, target, key, desc) {
39
37
  PhysXRuntimeMode[PhysXRuntimeMode[/** JavaScript mode. */ "JavaScript"] = 2] = "JavaScript";
40
38
  })(PhysXRuntimeMode || (PhysXRuntimeMode = {}));
41
39
 
42
- function setPrototypeOf(o, p) {
43
- setPrototypeOf = Object.setPrototypeOf || function setPrototypeOf(o, p) {
44
- o.__proto__ = p;
45
- return o;
46
- };
40
+ function _set_prototype_of(o, p) {
41
+ _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
42
+ o.__proto__ = p;
47
43
 
48
- return setPrototypeOf(o, p);
49
- }
44
+ return o;
45
+ };
50
46
 
51
- function _setPrototypeOf(o, p) {
52
- return setPrototypeOf(o, p);
47
+ return _set_prototype_of(o, p);
53
48
  }
54
49
 
55
50
  function _inherits(subClass, superClass) {
56
- if (typeof superClass !== "function" && superClass !== null) {
57
- throw new TypeError("Super expression must either be null or a function");
58
- }
59
-
60
- subClass.prototype = Object.create(superClass && superClass.prototype, {
61
- constructor: {
62
- value: subClass,
63
- writable: true,
64
- configurable: true
51
+ if (typeof superClass !== "function" && superClass !== null) {
52
+ throw new TypeError("Super expression must either be null or a function");
65
53
  }
66
- });
67
- if (superClass) _setPrototypeOf(subClass, superClass);
54
+
55
+ subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });
56
+
57
+ if (superClass) _set_prototype_of(subClass, superClass);
68
58
  }
69
59
 
70
60
  /**
@@ -130,9 +120,15 @@ function _inherits(subClass, superClass) {
130
120
  };
131
121
  return PhysXJoint;
132
122
  }();
133
- PhysXJoint._xAxis = new Vector3(1, 0, 0);
134
- PhysXJoint._defaultVec = new Vector3();
135
- PhysXJoint._defaultQuat = new Quaternion();
123
+ (function() {
124
+ PhysXJoint._xAxis = new Vector3(1, 0, 0);
125
+ })();
126
+ (function() {
127
+ PhysXJoint._defaultVec = new Vector3();
128
+ })();
129
+ (function() {
130
+ PhysXJoint._defaultQuat = new Quaternion();
131
+ })();
136
132
 
137
133
  /**
138
134
  * A fixed joint permits no relative movement between two colliders. ie the bodies are glued together.
@@ -410,11 +406,15 @@ var ShapeFlag;
410
406
  };
411
407
  return PhysXColliderShape;
412
408
  }();
413
- PhysXColliderShape.halfSqrt = 0.70710678118655;
414
- PhysXColliderShape.transform = {
415
- translation: new Vector3(),
416
- rotation: null
417
- };
409
+ (function() {
410
+ PhysXColliderShape.halfSqrt = 0.70710678118655;
411
+ })();
412
+ (function() {
413
+ PhysXColliderShape.transform = {
414
+ translation: new Vector3(),
415
+ rotation: null
416
+ };
417
+ })();
418
418
 
419
419
  /**
420
420
  * Box collider shape in PhysX.
@@ -457,7 +457,9 @@ PhysXColliderShape.transform = {
457
457
  };
458
458
  return PhysXBoxColliderShape;
459
459
  }(PhysXColliderShape);
460
- PhysXBoxColliderShape._tempHalfExtents = new Vector3();
460
+ (function() {
461
+ PhysXBoxColliderShape._tempHalfExtents = new Vector3();
462
+ })();
461
463
 
462
464
  /**
463
465
  * Capsule collider shape in PhysX.
@@ -708,10 +710,12 @@ var /**
708
710
  };
709
711
  return PhysXCollider;
710
712
  }();
711
- PhysXCollider._tempTransform = {
712
- translation: null,
713
- rotation: null
714
- };
713
+ (function() {
714
+ PhysXCollider._tempTransform = {
715
+ translation: null,
716
+ rotation: null
717
+ };
718
+ })();
715
719
 
716
720
  var CollisionDetectionMode;
717
721
  (function(CollisionDetectionMode) {
@@ -868,8 +872,12 @@ var CollisionDetectionMode;
868
872
  };
869
873
  return PhysXDynamicCollider;
870
874
  }(PhysXCollider);
871
- PhysXDynamicCollider._tempTranslation = new Vector3();
872
- PhysXDynamicCollider._tempRotation = new Quaternion();
875
+ (function() {
876
+ PhysXDynamicCollider._tempTranslation = new Vector3();
877
+ })();
878
+ (function() {
879
+ PhysXDynamicCollider._tempRotation = new Quaternion();
880
+ })();
873
881
 
874
882
  /**
875
883
  * A manager is a collection of colliders and constraints which can interact.
@@ -1070,8 +1078,12 @@ PhysXDynamicCollider._tempRotation = new Quaternion();
1070
1078
  };
1071
1079
  return PhysXPhysicsManager;
1072
1080
  }();
1073
- PhysXPhysicsManager._tempPosition = new Vector3();
1074
- PhysXPhysicsManager._tempNormal = new Vector3();
1081
+ (function() {
1082
+ PhysXPhysicsManager._tempPosition = new Vector3();
1083
+ })();
1084
+ (function() {
1085
+ PhysXPhysicsManager._tempNormal = new Vector3();
1086
+ })();
1075
1087
  var /**
1076
1088
  * Filtering flags for scene queries.
1077
1089
  */ QueryFlag;