a3js 0.0.39 → 0.0.40
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 +1 -1
- package/dist/a3js.cjs.js.map +1 -1
- package/dist/a3js.es.js +7 -7
- package/dist/a3js.es.js.map +1 -1
- package/package.json +1 -1
package/dist/a3js.es.js
CHANGED
|
@@ -1289,7 +1289,7 @@ class Pe {
|
|
|
1289
1289
|
translate(e, t, n) {
|
|
1290
1290
|
_.v1.set(this.transformer.transform.loc), typeof e == "number" ? _.v1.add(e, t, n) : _.v1.add(e), this.setPosition(_.v1);
|
|
1291
1291
|
}
|
|
1292
|
-
|
|
1292
|
+
translateNow(e, t, n) {
|
|
1293
1293
|
_.v1.set(this.transformer.transform.loc), typeof e == "number" ? _.v1.add(e, t, n) : _.v1.add(e), this.setPositionNow(_.v1);
|
|
1294
1294
|
}
|
|
1295
1295
|
mulQuat(e, t, n, r) {
|
|
@@ -1318,37 +1318,37 @@ class Pe {
|
|
|
1318
1318
|
this.getUnitVecZ(_.v0), _.v0.scale(e), this.translate(_.v0);
|
|
1319
1319
|
}
|
|
1320
1320
|
moveForwardNow(e) {
|
|
1321
|
-
this.getUnitVecZ(_.v0), _.v0.scale(e), this.
|
|
1321
|
+
this.getUnitVecZ(_.v0), _.v0.scale(e), this.translateNow(_.v0);
|
|
1322
1322
|
}
|
|
1323
1323
|
moveBackward(e) {
|
|
1324
1324
|
this.getUnitVecZ(_.v0), _.v0.scale(-e), this.translate(_.v0);
|
|
1325
1325
|
}
|
|
1326
1326
|
moveBackwardNow(e) {
|
|
1327
|
-
this.getUnitVecZ(_.v0), _.v0.scale(-e), this.
|
|
1327
|
+
this.getUnitVecZ(_.v0), _.v0.scale(-e), this.translateNow(_.v0);
|
|
1328
1328
|
}
|
|
1329
1329
|
moveRight(e) {
|
|
1330
1330
|
this.getUnitVecX(_.v0), _.v0.scale(-e), this.translate(_.v0);
|
|
1331
1331
|
}
|
|
1332
1332
|
moveRightNow(e) {
|
|
1333
|
-
this.getUnitVecX(_.v0), _.v0.scale(-e), this.
|
|
1333
|
+
this.getUnitVecX(_.v0), _.v0.scale(-e), this.translateNow(_.v0);
|
|
1334
1334
|
}
|
|
1335
1335
|
moveLeft(e) {
|
|
1336
1336
|
this.getUnitVecX(_.v0), _.v0.scale(e), this.translate(_.v0);
|
|
1337
1337
|
}
|
|
1338
1338
|
moveLeftNow(e) {
|
|
1339
|
-
this.getUnitVecX(_.v0), _.v0.scale(e), this.
|
|
1339
|
+
this.getUnitVecX(_.v0), _.v0.scale(e), this.translateNow(_.v0);
|
|
1340
1340
|
}
|
|
1341
1341
|
moveUp(e) {
|
|
1342
1342
|
this.getUnitVecY(_.v0), _.v0.scale(e), this.translate(_.v0);
|
|
1343
1343
|
}
|
|
1344
1344
|
moveUpNow(e) {
|
|
1345
|
-
this.getUnitVecY(_.v0), _.v0.scale(e), this.
|
|
1345
|
+
this.getUnitVecY(_.v0), _.v0.scale(e), this.translateNow(_.v0);
|
|
1346
1346
|
}
|
|
1347
1347
|
moveDown(e) {
|
|
1348
1348
|
this.getUnitVecY(_.v0), _.v0.scale(-e), this.translate(_.v0);
|
|
1349
1349
|
}
|
|
1350
1350
|
moveDownNow(e) {
|
|
1351
|
-
this.getUnitVecY(_.v0), _.v0.scale(-e), this.
|
|
1351
|
+
this.getUnitVecY(_.v0), _.v0.scale(-e), this.translateNow(_.v0);
|
|
1352
1352
|
}
|
|
1353
1353
|
turnUp(e) {
|
|
1354
1354
|
this.mulRotation(-e, 0, 0);
|