@woosh/meep-engine 2.85.20 → 2.86.0
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/build/meep.cjs +81 -81
- package/build/meep.min.js +1 -1
- package/build/meep.module.js +81 -81
- package/editor/tools/v2/BlenderCameraOrientationGizmo.js +9 -8
- package/package.json +1 -1
- package/src/core/__module.d.ts +6 -0
- package/src/core/__module.js +6 -0
- package/src/core/geom/2d/circle/circleIntersectsCircle.js +1 -1
- package/src/core/geom/2d/circle/circleIntersectsPoint.js +1 -1
- package/src/core/geom/3d/eulerAnglesFromMatrix.js +1 -1
- package/src/core/geom/3d/normal/lamber_azimuth/transform.js +1 -1
- package/src/core/geom/3d/normal/spherical/sphere_map_transform.js +1 -1
- package/src/core/geom/Vector2.d.ts.map +1 -1
- package/src/core/geom/Vector2.js +4 -89
- package/src/core/geom/vec2/v2_angle_between.d.ts +10 -0
- package/src/core/geom/vec2/v2_angle_between.d.ts.map +1 -0
- package/src/core/geom/vec2/v2_angle_between.js +20 -0
- package/src/core/geom/vec2/v2_bearing_angle_towards.d.ts +10 -0
- package/src/core/geom/vec2/v2_bearing_angle_towards.d.ts.map +1 -0
- package/src/core/geom/vec2/v2_bearing_angle_towards.js +16 -0
- package/src/core/geom/vec2/v2_distance.d.ts +10 -0
- package/src/core/geom/vec2/v2_distance.d.ts.map +1 -0
- package/src/core/geom/vec2/v2_distance.js +21 -0
- package/src/core/geom/vec2/v2_distance_sqr.js +0 -0
- package/src/core/geom/vec2/v2_dot.d.ts +10 -0
- package/src/core/geom/vec2/v2_dot.d.ts.map +1 -0
- package/src/core/geom/vec2/v2_dot.js +18 -0
- package/src/core/geom/vec2/v2_length_sqr.d.ts +8 -0
- package/src/core/geom/vec2/v2_length_sqr.d.ts.map +1 -0
- package/src/core/geom/vec2/v2_length_sqr.js +9 -0
- package/src/core/geom/vec2/v2_magnitude.d.ts +8 -0
- package/src/core/geom/vec2/v2_magnitude.d.ts.map +1 -0
- package/src/core/geom/vec2/v2_magnitude.js +11 -0
- package/src/core/graph/layout/CircleLayout.d.ts.map +1 -1
- package/src/core/graph/layout/CircleLayout.js +2 -1
- package/src/engine/graphics/ecs/decal/v2/prototypeDecalSystem.js +28 -27
- package/src/engine/graphics/ecs/path/tube/build/fix_shape_normal_order.js +1 -1
- package/src/engine/graphics/ecs/path/tube/build/make_cap.js +5 -5
- package/src/engine/graphics/render/forward_plus/prototype/prototypeLightManager.js +1 -1
- package/src/generation/markers/actions/terrain/MarkerNodeActionPaintTerrain.d.ts.map +1 -1
- package/src/generation/markers/actions/terrain/MarkerNodeActionPaintTerrain.js +10 -10
|
@@ -1,37 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { vec3 } from "gl-matrix";
|
|
2
|
+
import { DoubleSide, LineBasicMaterial, MeshStandardMaterial } from "three";
|
|
3
|
+
import '../../../../../../../../../css/game.scss';
|
|
4
|
+
import { makeHelperBoxGeometry } from "../../../../../../editor/process/symbolic/makeHelperBoxGeometry.js";
|
|
5
|
+
import { makeSolidArrowGeometry } from "../../../../../../editor/process/symbolic/makeSolidArrowGeometry.js";
|
|
6
|
+
import Quaternion from "../../../../../core/geom/Quaternion.js";
|
|
7
|
+
import { v2_distance } from "../../../../../core/geom/vec2/v2_distance.js";
|
|
8
|
+
import Vector2 from "../../../../../core/geom/Vector2.js";
|
|
9
|
+
import Vector3 from "../../../../../core/geom/Vector3.js";
|
|
6
10
|
import { randomFloatBetween } from "../../../../../core/math/random/randomFloatBetween.js";
|
|
7
|
-
import { seededRandom } from "../../../../../core/math/random/seededRandom.js";
|
|
8
11
|
import { randomFromArray } from "../../../../../core/math/random/randomFromArray.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { TransformAttachmentSystem } from "../../../../ecs/transform-attachment/TransformAttachmentSystem.js";
|
|
13
|
-
import { SGMesh } from "../../mesh-v2/aggregate/SGMesh.js";
|
|
12
|
+
import { seededRandom } from "../../../../../core/math/random/seededRandom.js";
|
|
13
|
+
import { countTask } from "../../../../../core/process/task/util/countTask.js";
|
|
14
|
+
import { TaskLoadingScreen } from "../../../../../view/task/TaskLoadingScreen.js";
|
|
14
15
|
import { GameAssetType } from "../../../../asset/GameAssetType.js";
|
|
15
16
|
import { GLTFAssetLoader } from "../../../../asset/loaders/GLTFAssetLoader.js";
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
import
|
|
19
|
-
import {
|
|
17
|
+
import Entity from "../../../../ecs/Entity.js";
|
|
18
|
+
import { EntityFlags } from "../../../../ecs/EntityFlags.js";
|
|
19
|
+
import { TransformAttachmentSystem } from "../../../../ecs/transform-attachment/TransformAttachmentSystem.js";
|
|
20
|
+
import { Transform } from "../../../../ecs/transform/Transform.js";
|
|
21
|
+
import { EngineHarness } from "../../../../EngineHarness.js";
|
|
20
22
|
import { BehaviorComponent } from "../../../../intelligence/behavior/ecs/BehaviorComponent.js";
|
|
21
|
-
import
|
|
22
|
-
import {
|
|
23
|
-
import { makeHelperBoxGeometry } from "../../../../../../editor/process/symbolic/makeHelperBoxGeometry.js";
|
|
24
|
-
import { DoubleSide, LineBasicMaterial, MeshStandardMaterial } from "three";
|
|
25
|
-
import { DrawMode } from "../../mesh-v2/DrawMode.js";
|
|
23
|
+
import { BehaviorSystem } from "../../../../intelligence/behavior/ecs/BehaviorSystem.js";
|
|
24
|
+
import { RotationBehavior } from "../../../../intelligence/behavior/util/RotationBehavior.js";
|
|
26
25
|
import { OctahedralUvEncoder } from "../../../impostors/octahedral/grid/OctahedralUvEncoder.js";
|
|
27
|
-
import { makeSolidArrowGeometry } from "../../../../../../editor/process/symbolic/makeSolidArrowGeometry.js";
|
|
28
|
-
import { vec3 } from "gl-matrix";
|
|
29
|
-
import Quaternion from "../../../../../core/geom/Quaternion.js";
|
|
30
|
-
import { GizmoRenderingPlugin } from "../../../render/gizmo/GizmoRenderingPlugin.js";
|
|
31
|
-
import { Gizmo } from "../../../render/gizmo/Gizmo.js";
|
|
32
26
|
import { ForwardPlusRenderingPlugin } from "../../../render/forward_plus/plugin/ForwardPlusRenderingPlugin.js";
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
27
|
+
import { Gizmo } from "../../../render/gizmo/Gizmo.js";
|
|
28
|
+
import { GizmoRenderingPlugin } from "../../../render/gizmo/GizmoRenderingPlugin.js";
|
|
29
|
+
import { SGMesh } from "../../mesh-v2/aggregate/SGMesh.js";
|
|
30
|
+
import { SGMeshSystem } from "../../mesh-v2/aggregate/SGMeshSystem.js";
|
|
31
|
+
import { DrawMode } from "../../mesh-v2/DrawMode.js";
|
|
32
|
+
import { ShadedGeometry } from "../../mesh-v2/ShadedGeometry.js";
|
|
33
|
+
import { ShadedGeometrySystem } from "../../mesh-v2/ShadedGeometrySystem.js";
|
|
34
|
+
import { Decal } from "./Decal.js";
|
|
35
|
+
import { FPDecalSystem } from "./FPDecalSystem.js";
|
|
35
36
|
|
|
36
37
|
const decal_urls = `data/textures/icons/FantasyIconsMegaPack/MagicItems/MagicItems_png/transparent/x64/staff_13_t.png
|
|
37
38
|
data/textures/icons/FantasyIconsMegaPack/MagicItems/MagicItems_png/transparent/x64/artifact_01_t.png
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { v2_bearing_angle_towards } from "../../../../../../core/geom/
|
|
1
|
+
import { v2_bearing_angle_towards } from "../../../../../../core/geom/vec2/v2_bearing_angle_towards.js";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Depending on the direction in which shape winds, normals of the generated geometry faces might end up flipped,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Vector3 } from "three";
|
|
2
|
+
import { m3_multiply } from "../../../../../../core/geom/mat3/m3_multiply.js";
|
|
3
|
+
import { m3_rm_compose_transform } from "../../../../../../core/geom/mat3/m3_rm_compose_transform.js";
|
|
4
|
+
import { v2_distance } from "../../../../../../core/geom/vec2/v2_distance.js";
|
|
2
5
|
import { max2 } from "../../../../../../core/math/max2.js";
|
|
3
|
-
import { make_ring_vertices } from "./make_ring_vertices.js";
|
|
4
|
-
import { make_ring_faces } from "./make_ring_faces.js";
|
|
5
|
-
import { v2_distance } from "../../../../../../core/geom/Vector2.js";
|
|
6
6
|
import { CapType } from "../CapType.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { make_ring_faces } from "./make_ring_faces.js";
|
|
8
|
+
import { make_ring_vertices } from "./make_ring_vertices.js";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
*
|
|
@@ -33,7 +33,7 @@ import { Color } from "../../../../../core/color/Color.js";
|
|
|
33
33
|
import { parse_color } from "../../../../../core/color/parse_color.js";
|
|
34
34
|
import Signal from "../../../../../core/events/signal/Signal.js";
|
|
35
35
|
import Quaternion from "../../../../../core/geom/Quaternion.js";
|
|
36
|
-
import { v2_distance } from "../../../../../core/geom/
|
|
36
|
+
import { v2_distance } from "../../../../../core/geom/vec2/v2_distance.js";
|
|
37
37
|
import Vector3 from "../../../../../core/geom/Vector3.js";
|
|
38
38
|
import { Localization } from "../../../../../core/localization/Localization.js";
|
|
39
39
|
import { min2 } from "../../../../../core/math/min2.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkerNodeActionPaintTerrain.d.ts","sourceRoot":"","sources":["../../../../../../src/generation/markers/actions/terrain/MarkerNodeActionPaintTerrain.js"],"names":[],"mappings":"AAcA;IA4DI;;;;;;;;OAQG;IACH,kEAPW,cAAc,GAKZ,4BAA4B,CAwBxC;IA1FD;;;OAGG;IACH,+BAAoC;IAEpC;;;OAGG;IACH,+BAAa;IAEb;;;;OAIG;IACH,qBAAkB;IAElB;;;;OAIG;IACH,mBAAkB;IAElB;;;;OAIG;IACH,iBAAgB;IAEhB;;;;OAIG;IACH,UAFU,cAAc,CAEgB;IAExC;;;OAGG;IACH,oCAFmB,MAAM,KAAG,MAAM,CAE0B;IAE5D;;;OAGG;IACH,oBAFU,cAAc,CAE0B;IAElD;;;;OAIG;IACH,gBAAQ;IAmCR;;;;;;;;;;OAUG;IACH,wBAmBC;IAED,yBAwBC;IAED,8CA8EC;IAED,iDAkBC;CACJ;
|
|
1
|
+
{"version":3,"file":"MarkerNodeActionPaintTerrain.d.ts","sourceRoot":"","sources":["../../../../../../src/generation/markers/actions/terrain/MarkerNodeActionPaintTerrain.js"],"names":[],"mappings":"AAcA;IA4DI;;;;;;;;OAQG;IACH,kEAPW,cAAc,GAKZ,4BAA4B,CAwBxC;IA1FD;;;OAGG;IACH,+BAAoC;IAEpC;;;OAGG;IACH,+BAAa;IAEb;;;;OAIG;IACH,qBAAkB;IAElB;;;;OAIG;IACH,mBAAkB;IAElB;;;;OAIG;IACH,iBAAgB;IAEhB;;;;OAIG;IACH,UAFU,cAAc,CAEgB;IAExC;;;OAGG;IACH,oCAFmB,MAAM,KAAG,MAAM,CAE0B;IAE5D;;;OAGG;IACH,oBAFU,cAAc,CAE0B;IAElD;;;;OAIG;IACH,gBAAQ;IAmCR;;;;;;;;;;OAUG;IACH,wBAmBC;IAED,yBAwBC;IAED,8CA8EC;IAED,iDAkBC;CACJ;iCA5PgC,wBAAwB;uCADlB,sDAAsD;2BAJlE,+CAA+C"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { assert } from "../../../../core/assert.js";
|
|
2
|
+
import { v2_distance } from "../../../../core/geom/vec2/v2_distance.js";
|
|
3
|
+
import { clamp } from "../../../../core/math/clamp.js";
|
|
4
|
+
import { clamp01 } from "../../../../core/math/clamp01.js";
|
|
5
|
+
import { inverseLerp } from "../../../../core/math/inverseLerp.js";
|
|
6
|
+
import { max2 } from "../../../../core/math/max2.js";
|
|
5
7
|
import { seededRandom } from "../../../../core/math/random/seededRandom.js";
|
|
6
|
-
import
|
|
8
|
+
import LinearModifier from "../../../../core/model/stat/LinearModifier.js";
|
|
7
9
|
import TransitionFunctions from "../../../../engine/animation/TransitionFunctions.js";
|
|
8
|
-
import { inverseLerp } from "../../../../core/math/inverseLerp.js";
|
|
9
|
-
import { clamp01 } from "../../../../core/math/clamp01.js";
|
|
10
|
-
import { clamp } from "../../../../core/math/clamp.js";
|
|
11
|
-
import { assert } from "../../../../core/assert.js";
|
|
12
10
|
import { TerrainLayer } from "../../../../engine/ecs/terrain/ecs/layers/TerrainLayer.js";
|
|
13
|
-
import
|
|
11
|
+
import Terrain from "../../../../engine/ecs/terrain/ecs/Terrain.js";
|
|
12
|
+
import { CellFilterLiteralFloat } from "../../../filtering/numeric/CellFilterLiteralFloat.js";
|
|
13
|
+
import { MarkerNodeAction } from "../MarkerNodeAction.js";
|
|
14
14
|
|
|
15
15
|
export class MarkerNodeActionPaintTerrain extends MarkerNodeAction {
|
|
16
16
|
/**
|