a3js 0.0.44 → 0.0.45
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/a3js.cjs.js +3 -3
- package/dist/a3js.cjs.js.map +1 -1
- package/dist/a3js.es.js +5 -4
- package/dist/a3js.es.js.map +1 -1
- package/package.json +1 -1
package/dist/a3js.es.js
CHANGED
|
@@ -745,7 +745,7 @@ class hi {
|
|
|
745
745
|
removeOneselfFromPhysics(e) {
|
|
746
746
|
this.colliders.forEach((t) => {
|
|
747
747
|
e.world.removeCollider(t, !0), ft.delete(t.handle);
|
|
748
|
-
}), this.body && e.world.removeRigidBody(this.body);
|
|
748
|
+
}), this.colliders.length = 0, this.body && (e.world.removeRigidBody(this.body), this.body = void 0);
|
|
749
749
|
}
|
|
750
750
|
// ここはなんとかできそうな気もするけど、とりあえず。
|
|
751
751
|
isGrounded() {
|
|
@@ -1028,7 +1028,7 @@ class ks {
|
|
|
1028
1028
|
this.controller = e.world.createCharacterController(this.completeOptions.offset), this.colliderDesc && (this.collider = e.world.createCollider(this.colliderDesc)), this.collider && this.objectA3 && ft.set(this.collider.handle, this.objectA3);
|
|
1029
1029
|
}
|
|
1030
1030
|
removeOneselfFromPhysics(e) {
|
|
1031
|
-
this.collider && (e.world.removeCollider(this.collider, !1), ft.delete(this.collider.handle));
|
|
1031
|
+
this.collider && (e.world.removeCollider(this.collider, !1), ft.delete(this.collider.handle), this.collider = void 0);
|
|
1032
1032
|
}
|
|
1033
1033
|
setPosition(e) {
|
|
1034
1034
|
this.tmpV1.set(e), this.tmpV1.add(this.capsuleCenter), this.nextLocation.set(this.tmpV1);
|
|
@@ -1129,7 +1129,7 @@ class xs {
|
|
|
1129
1129
|
this.physicsWorld = e, this.bodyDesc && (this.body = e.world.createRigidBody(this.bodyDesc), this.body.setEnabledRotations(!1, !1, !1, !0), this.body.setTranslation(this.transform.loc, !0), this.body.setRotation(this.transform.quat, !0)), this.colliderDesc && (this.collider = e.world.createCollider(this.colliderDesc, this.body)), this.collider && this.objectA3 && ft.set(this.collider.handle, this.objectA3);
|
|
1130
1130
|
}
|
|
1131
1131
|
removeOneselfFromPhysics(e) {
|
|
1132
|
-
this.collider && (e.world.removeCollider(this.collider, !0), ft.delete(this.collider.handle)), this.body && e.world.removeRigidBody(this.body), this.physicsWorld = void 0;
|
|
1132
|
+
this.collider && (e.world.removeCollider(this.collider, !0), ft.delete(this.collider.handle), this.collider = void 0), this.body && (e.world.removeRigidBody(this.body), this.body = void 0), this.physicsWorld = void 0;
|
|
1133
1133
|
}
|
|
1134
1134
|
setPosition(e) {
|
|
1135
1135
|
}
|
|
@@ -12276,6 +12276,7 @@ const gA = {
|
|
|
12276
12276
|
meshopt: !0
|
|
12277
12277
|
};
|
|
12278
12278
|
function lo(i = {}) {
|
|
12279
|
+
re.Cache.enabled = !0;
|
|
12279
12280
|
const e = {
|
|
12280
12281
|
...gA,
|
|
12281
12282
|
...i
|
|
@@ -13479,7 +13480,7 @@ class _A {
|
|
|
13479
13480
|
}
|
|
13480
13481
|
}
|
|
13481
13482
|
removeOneselfFromPhysics(e) {
|
|
13482
|
-
this.chassisCollider && (e.world.removeCollider(this.chassisCollider, !
|
|
13483
|
+
this.chassisCollider && (e.world.removeCollider(this.chassisCollider, !0), ft.delete(this.chassisCollider.handle), this.chassisCollider = void 0), this.chassisBody && e.world.removeRigidBody(this.chassisBody), this.chassisBody = void 0;
|
|
13483
13484
|
}
|
|
13484
13485
|
setPosition(e) {
|
|
13485
13486
|
}
|