@galacean/engine-core 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/main.js +9 -5
- package/dist/main.js.map +1 -1
- package/dist/module.js +9 -5
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
package/dist/module.js
CHANGED
|
@@ -34078,13 +34078,17 @@ __decorate([
|
|
|
34078
34078
|
instanceVertices[offset + 14] = size;
|
|
34079
34079
|
}
|
|
34080
34080
|
// Start rotation
|
|
34081
|
-
var startRotationRand = main._startRotationRand;
|
|
34081
|
+
var startRotationRand = main._startRotationRand, flipRotation = main.flipRotation;
|
|
34082
|
+
var isOpposite = flipRotation < startRotationRand.random();
|
|
34083
|
+
var rotationZ = MathUtil.degreeToRadian(main.startRotationZ.evaluate(undefined, startRotationRand.random()));
|
|
34082
34084
|
if (main.startRotation3D) {
|
|
34083
|
-
|
|
34084
|
-
|
|
34085
|
-
instanceVertices[offset +
|
|
34085
|
+
var rotationX = MathUtil.degreeToRadian(main.startRotationX.evaluate(undefined, startRotationRand.random()));
|
|
34086
|
+
var rotationY = MathUtil.degreeToRadian(main.startRotationY.evaluate(undefined, startRotationRand.random()));
|
|
34087
|
+
instanceVertices[offset + 15] = isOpposite ? -rotationX : rotationX;
|
|
34088
|
+
instanceVertices[offset + 16] = isOpposite ? -rotationY : rotationY;
|
|
34089
|
+
instanceVertices[offset + 17] = isOpposite ? -rotationZ : rotationZ;
|
|
34086
34090
|
} else {
|
|
34087
|
-
instanceVertices[offset + 15] =
|
|
34091
|
+
instanceVertices[offset + 15] = isOpposite ? -rotationZ : rotationZ;
|
|
34088
34092
|
}
|
|
34089
34093
|
// Start speed
|
|
34090
34094
|
instanceVertices[offset + 18] = startSpeed;
|