@galacean/engine 1.4.6 → 1.4.7
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 +10 -6
- 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 +1 -1
- package/dist/module.js +1 -1
- package/package.json +5 -5
package/dist/browser.js
CHANGED
|
@@ -38690,13 +38690,17 @@
|
|
|
38690
38690
|
instanceVertices[offset + 14] = size;
|
|
38691
38691
|
}
|
|
38692
38692
|
// Start rotation
|
|
38693
|
-
var startRotationRand = main._startRotationRand;
|
|
38693
|
+
var startRotationRand = main._startRotationRand, flipRotation = main.flipRotation;
|
|
38694
|
+
var isOpposite = flipRotation < startRotationRand.random();
|
|
38695
|
+
var rotationZ = MathUtil.degreeToRadian(main.startRotationZ.evaluate(undefined, startRotationRand.random()));
|
|
38694
38696
|
if (main.startRotation3D) {
|
|
38695
|
-
|
|
38696
|
-
|
|
38697
|
-
instanceVertices[offset +
|
|
38697
|
+
var rotationX = MathUtil.degreeToRadian(main.startRotationX.evaluate(undefined, startRotationRand.random()));
|
|
38698
|
+
var rotationY = MathUtil.degreeToRadian(main.startRotationY.evaluate(undefined, startRotationRand.random()));
|
|
38699
|
+
instanceVertices[offset + 15] = isOpposite ? -rotationX : rotationX;
|
|
38700
|
+
instanceVertices[offset + 16] = isOpposite ? -rotationY : rotationY;
|
|
38701
|
+
instanceVertices[offset + 17] = isOpposite ? -rotationZ : rotationZ;
|
|
38698
38702
|
} else {
|
|
38699
|
-
instanceVertices[offset + 15] =
|
|
38703
|
+
instanceVertices[offset + 15] = isOpposite ? -rotationZ : rotationZ;
|
|
38700
38704
|
}
|
|
38701
38705
|
// Start speed
|
|
38702
38706
|
instanceVertices[offset + 18] = startSpeed;
|
|
@@ -50035,7 +50039,7 @@
|
|
|
50035
50039
|
], EXT_texture_webp);
|
|
50036
50040
|
|
|
50037
50041
|
//@ts-ignore
|
|
50038
|
-
var version = "1.4.
|
|
50042
|
+
var version = "1.4.7";
|
|
50039
50043
|
console.log("Galacean Engine Version: " + version);
|
|
50040
50044
|
for(var key in CoreObjects){
|
|
50041
50045
|
Loader.registerClass(key, CoreObjects[key]);
|