@woosh/meep-engine 2.119.131 → 2.120.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/editor/tools/v2/BlenderCameraOrientationGizmo.js +1 -1
- package/package.json +1 -1
- package/src/core/bvh2/bvh3/BVH.d.ts.map +1 -1
- package/src/core/bvh2/bvh3/BVH.js +6 -29
- package/src/core/bvh2/bvh3/ebvh_build_for_geometry_morton.js +1 -1
- package/src/core/bvh2/bvh3/ebvh_optimize_treelet.d.ts +2 -2
- package/src/core/bvh2/bvh3/ebvh_optimize_treelet.d.ts.map +1 -1
- package/src/core/bvh2/bvh3/ebvh_optimize_treelet.js +11 -3
- package/src/core/collection/RingBuffer.d.ts +5 -0
- package/src/core/collection/RingBuffer.d.ts.map +1 -1
- package/src/core/collection/RingBuffer.js +12 -2
- package/src/core/collection/list/List.js +1 -1
- package/src/core/collection/map/HashMap.d.ts.map +1 -1
- package/src/core/collection/map/HashMap.js +13 -0
- package/src/core/color/Color.d.ts.map +1 -1
- package/src/core/color/Color.js +1 -2
- package/src/core/color/oklab/linear_srgb_to_okhsv.d.ts.map +1 -1
- package/src/core/color/oklab/linear_srgb_to_okhsv.js +15 -4
- package/src/core/color/oklab/okhsv_to_linear_srgb.d.ts.map +1 -1
- package/src/core/color/oklab/okhsv_to_linear_srgb.js +8 -1
- package/src/core/color/operations/color_darken.d.ts.map +1 -1
- package/src/core/color/operations/color_darken.js +6 -1
- package/src/core/geom/3d/mat4/apply_mat4_transform_to_direction_v3_array.d.ts.map +1 -0
- package/src/core/geom/3d/{apply_mat4_transform_to_direction_v3_array.js → mat4/apply_mat4_transform_to_direction_v3_array.js} +1 -1
- package/src/core/geom/3d/mat4/apply_mat4_transform_to_v3_array.d.ts.map +1 -0
- package/src/core/geom/3d/mat4/compose_matrix4_array.d.ts.map +1 -0
- package/src/core/geom/3d/mat4/decompose_matrix_4_array.d.ts.map +1 -0
- package/src/core/geom/3d/{decompose_matrix_4_array.js → mat4/decompose_matrix_4_array.js} +1 -1
- package/src/core/geom/3d/mat4/eulerAnglesFromMatrix.d.ts.map +1 -0
- package/src/core/geom/3d/{eulerAnglesFromMatrix.js → mat4/eulerAnglesFromMatrix.js} +1 -1
- package/src/core/geom/3d/mat4/m4_extract_scale.d.ts.map +1 -0
- package/src/core/geom/3d/{m4_extract_scale.js → mat4/m4_extract_scale.js} +1 -1
- package/src/core/geom/3d/ray/Ray3.d.ts.map +1 -0
- package/src/core/geom/3d/{Ray3.js → ray/Ray3.js} +8 -8
- package/src/core/geom/3d/shape/TransformedShape3D.js +1 -1
- package/src/core/geom/3d/sphere/compute_bounding_sphere_of_2_spheres.d.ts.map +1 -0
- package/src/core/geom/3d/{compute_bounding_sphere_of_2_spheres.js → sphere/compute_bounding_sphere_of_2_spheres.js} +3 -3
- package/src/core/geom/3d/tetrahedra/triangle/trace_triangular_depth_map.js +1 -1
- package/src/core/geom/3d/topology/simplify/quadratic/Quadratic3.js +1 -1
- package/src/core/geom/3d/topology/struct/TopoTriangle.js +1 -1
- package/src/core/geom/3d/topology/tm_face_normal.js +1 -1
- package/src/core/geom/3d/topology/tm_vertex_compute_normal.js +1 -1
- package/src/core/geom/3d/triangle/aabb3_compute_from_triangle.d.ts.map +1 -0
- package/src/core/geom/3d/{aabb3_compute_from_triangle.js → triangle/aabb3_compute_from_triangle.js} +2 -2
- package/src/core/geom/3d/triangle/compute_triangle_normal.d.ts.map +1 -0
- package/src/core/geom/3d/{compute_triangle_normal.js → triangle/compute_triangle_normal.js} +1 -1
- package/src/core/geom/3d/triangle/v3_compute_triangle_normal.d.ts +13 -13
- package/src/core/geom/3d/triangle/v3_compute_triangle_normal.js +21 -21
- package/src/core/geom/Quaternion.d.ts.map +1 -1
- package/src/core/geom/Quaternion.js +18 -3
- package/src/core/geom/Vector3.d.ts.map +1 -1
- package/src/core/geom/Vector3.js +3 -2
- package/src/core/geom/packing/miniball/Miniball.d.ts.map +1 -1
- package/src/core/geom/packing/miniball/Miniball.js +9 -5
- package/src/core/geom/packing/miniball/Subspan.d.ts +8 -7
- package/src/core/geom/packing/miniball/Subspan.d.ts.map +1 -1
- package/src/core/geom/packing/miniball/Subspan.js +42 -52
- package/src/core/geom/vec2/v2_bearing_angle_towards.d.ts +6 -5
- package/src/core/geom/vec2/v2_bearing_angle_towards.d.ts.map +1 -1
- package/src/core/geom/vec2/v2_bearing_angle_towards.js +12 -11
- package/src/core/geom/vec2/v2_distance.d.ts +6 -6
- package/src/core/geom/vec2/v2_distance.js +6 -6
- package/src/core/geom/vec3/v3_compute_interior_angle.d.ts.map +1 -0
- package/src/core/geom/{3d → vec3}/v3_compute_interior_angle.js +1 -1
- package/src/core/geom/vec3/v3_distance_above_plane.d.ts +8 -8
- package/src/core/geom/vec3/v3_distance_above_plane.d.ts.map +1 -1
- package/src/core/geom/vec3/v3_distance_above_plane.js +9 -9
- package/src/core/geom/vec3/v3_slerp.d.ts +11 -9
- package/src/core/geom/vec3/v3_slerp.d.ts.map +1 -1
- package/src/core/geom/vec3/v3_slerp.js +8 -8
- package/src/core/math/PI.d.ts +6 -0
- package/src/core/math/PI.d.ts.map +1 -0
- package/src/core/math/PI.js +5 -0
- package/src/core/math/linalg/lu_factor_linear_system.d.ts +6 -6
- package/src/core/math/linalg/lu_factor_linear_system.d.ts.map +1 -1
- package/src/core/math/linalg/lu_factor_linear_system.js +11 -6
- package/src/core/math/linalg/lu_solve_linear_system.d.ts +8 -8
- package/src/core/math/linalg/lu_solve_linear_system.d.ts.map +1 -1
- package/src/core/math/linalg/lu_solve_linear_system.js +11 -9
- package/src/core/math/random/randomGaussian.d.ts +2 -2
- package/src/core/math/random/randomGaussian.d.ts.map +1 -1
- package/src/core/math/random/randomGaussian.js +1 -1
- package/src/engine/animation/Tween.d.ts +27 -0
- package/src/engine/animation/Tween.d.ts.map +1 -0
- package/src/engine/animation/Tween.js +61 -52
- package/src/engine/animation/curve/binding/BoundPlainNumericPropertyWriter.d.ts +7 -1
- package/src/engine/animation/curve/binding/BoundPlainNumericPropertyWriter.d.ts.map +1 -1
- package/src/engine/animation/curve/binding/BoundPlainNumericPropertyWriter.js +6 -0
- package/src/engine/animation/curve/binding/BoundQuaternionWriter.d.ts +5 -1
- package/src/engine/animation/curve/binding/BoundQuaternionWriter.d.ts.map +1 -1
- package/src/engine/animation/curve/binding/BoundQuaternionWriter.js +4 -0
- package/src/engine/animation/curve/binding/BoundVector3Writer.d.ts +5 -1
- package/src/engine/animation/curve/binding/BoundVector3Writer.d.ts.map +1 -1
- package/src/engine/animation/curve/binding/BoundVector3Writer.js +4 -0
- package/src/engine/development/performance/MetricCollection.d.ts.map +1 -1
- package/src/engine/development/performance/MetricCollection.js +6 -7
- package/src/engine/ecs/System.d.ts +1 -0
- package/src/engine/ecs/animation/Animation.d.ts +5 -0
- package/src/engine/ecs/animation/Animation.d.ts.map +1 -1
- package/src/engine/ecs/animation/Animation.js +14 -1
- package/src/engine/ecs/animation/AnimationClip.d.ts +6 -0
- package/src/engine/ecs/animation/AnimationClip.d.ts.map +1 -1
- package/src/engine/ecs/animation/AnimationClip.js +34 -22
- package/src/engine/ecs/guid/UUID.d.ts +4 -0
- package/src/engine/ecs/guid/UUID.d.ts.map +1 -1
- package/src/engine/ecs/guid/UUID.js +4 -0
- package/src/engine/ecs/transform/Transform.js +2 -2
- package/src/engine/graphics/ecs/camera/topdown/TopDownCameraController.js +1 -1
- package/src/engine/graphics/ecs/highlight/Highlight.d.ts.map +1 -1
- package/src/engine/graphics/ecs/highlight/Highlight.js +4 -0
- package/src/engine/graphics/geometry/bvh/buffered/bvh32_set_leaf_from_triangle.js +1 -1
- package/src/engine/graphics/impostors/octahedral/bake/compute_bounding_sphere.js +1 -1
- package/src/engine/graphics/particles/particular/engine/emitter/ParticleEmitter.js +1 -1
- package/src/engine/graphics/render/gizmo/GizmoShapeRenderingInterface.js +1 -1
- package/src/engine/graphics/sh3/lpv/PathTracerProbeRenderer.js +1 -1
- package/src/engine/graphics/sh3/lpv/depth/octahedral/bake_octahedral_depth_map.js +1 -1
- package/src/engine/graphics/sh3/lpv/depth/octahedral/bake_octahedral_depth_map_fibonacci.js +1 -1
- package/src/engine/graphics/sh3/lpv/depth/sh3_bake_depth.js +1 -1
- package/src/engine/graphics/sh3/path_tracer/PathTracedMesh.d.ts +1 -1
- package/src/engine/graphics/sh3/path_tracer/PathTracedMesh.d.ts.map +1 -1
- package/src/engine/graphics/sh3/path_tracer/PathTracedMesh.js +2 -2
- package/src/engine/graphics/sh3/path_tracer/PathTracedScene.d.ts +1 -1
- package/src/engine/graphics/sh3/path_tracer/PathTracedScene.d.ts.map +1 -1
- package/src/engine/graphics/sh3/path_tracer/PathTracedScene.js +1 -1
- package/src/engine/graphics/sh3/path_tracer/PathTracer.d.ts +1 -1
- package/src/engine/graphics/sh3/path_tracer/PathTracer.d.ts.map +1 -1
- package/src/engine/graphics/sh3/path_tracer/PathTracer.js +1 -1
- package/src/engine/graphics/sh3/path_tracer/prototypePathTracer.js +1 -1
- package/src/engine/graphics/sh3/prototypeSH3Probe.js +1 -1
- package/src/engine/graphics/util/composeMatrix4.js +1 -1
- package/src/engine/physics/computeInterceptPoint.d.ts +11 -1
- package/src/engine/physics/computeInterceptPoint.d.ts.map +1 -1
- package/src/engine/physics/computeInterceptPoint.js +29 -12
- package/src/engine/physics/gjk/expanding_polytope_algorithm.d.ts.map +1 -1
- package/src/engine/physics/gjk/expanding_polytope_algorithm.js +19 -59
- package/src/engine/physics/inverse_kinematics/fabrik/fabrik_solve.d.ts +3 -2
- package/src/engine/physics/inverse_kinematics/fabrik/fabrik_solve.d.ts.map +1 -1
- package/src/engine/physics/inverse_kinematics/fabrik/fabrik_solve.js +3 -2
- package/src/engine/physics/inverse_kinematics/two_joint_ik.d.ts.map +1 -1
- package/src/engine/physics/inverse_kinematics/two_joint_ik.js +1 -1
- package/src/core/geom/3d/Ray3.d.ts.map +0 -1
- package/src/core/geom/3d/aabb3_compute_from_triangle.d.ts.map +0 -1
- package/src/core/geom/3d/apply_mat4_transform_to_direction_v3_array.d.ts.map +0 -1
- package/src/core/geom/3d/apply_mat4_transform_to_v3_array.d.ts.map +0 -1
- package/src/core/geom/3d/compose_matrix4_array.d.ts.map +0 -1
- package/src/core/geom/3d/compute_bounding_sphere_of_2_spheres.d.ts.map +0 -1
- package/src/core/geom/3d/compute_triangle_normal.d.ts.map +0 -1
- package/src/core/geom/3d/decompose_matrix_4_array.d.ts.map +0 -1
- package/src/core/geom/3d/eulerAnglesFromMatrix.d.ts.map +0 -1
- package/src/core/geom/3d/m4_extract_scale.d.ts.map +0 -1
- package/src/core/geom/3d/v3_compute_interior_angle.d.ts.map +0 -1
- /package/src/core/geom/3d/{apply_mat4_transform_to_direction_v3_array.d.ts → mat4/apply_mat4_transform_to_direction_v3_array.d.ts} +0 -0
- /package/src/core/geom/3d/{apply_mat4_transform_to_v3_array.d.ts → mat4/apply_mat4_transform_to_v3_array.d.ts} +0 -0
- /package/src/core/geom/3d/{apply_mat4_transform_to_v3_array.js → mat4/apply_mat4_transform_to_v3_array.js} +0 -0
- /package/src/core/geom/3d/{compose_matrix4_array.d.ts → mat4/compose_matrix4_array.d.ts} +0 -0
- /package/src/core/geom/3d/{compose_matrix4_array.js → mat4/compose_matrix4_array.js} +0 -0
- /package/src/core/geom/3d/{decompose_matrix_4_array.d.ts → mat4/decompose_matrix_4_array.d.ts} +0 -0
- /package/src/core/geom/3d/{eulerAnglesFromMatrix.d.ts → mat4/eulerAnglesFromMatrix.d.ts} +0 -0
- /package/src/core/geom/3d/{m4_extract_scale.d.ts → mat4/m4_extract_scale.d.ts} +0 -0
- /package/src/core/geom/3d/{Ray3.d.ts → ray/Ray3.d.ts} +0 -0
- /package/src/core/geom/3d/{compute_bounding_sphere_of_2_spheres.d.ts → sphere/compute_bounding_sphere_of_2_spheres.d.ts} +0 -0
- /package/src/core/geom/3d/{aabb3_compute_from_triangle.d.ts → triangle/aabb3_compute_from_triangle.d.ts} +0 -0
- /package/src/core/geom/3d/{compute_triangle_normal.d.ts → triangle/compute_triangle_normal.d.ts} +0 -0
- /package/src/core/geom/{3d → vec3}/v3_compute_interior_angle.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { apply_mat4_transform_to_v3_array } from "../../../../../core/geom/3d/mat4/apply_mat4_transform_to_v3_array.js";
|
|
1
2
|
import { Miniball } from "../../../../../core/geom/packing/miniball/Miniball.js";
|
|
2
3
|
import { PointSet } from "../../../../../core/geom/packing/miniball/PointSet.js";
|
|
3
|
-
import { apply_mat4_transform_to_v3_array } from "../../../../../core/geom/3d/apply_mat4_transform_to_v3_array.js";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
*
|
|
@@ -7,7 +7,7 @@ import { SCRATCH_UINT32_TRAVERSAL_STACK } from "../../../../../../core/collectio
|
|
|
7
7
|
import { AABB3 } from "../../../../../../core/geom/3d/aabb/AABB3.js";
|
|
8
8
|
import { aabb3_array_combine } from "../../../../../../core/geom/3d/aabb/aabb3_array_combine.js";
|
|
9
9
|
import { aabb3_expand_array } from "../../../../../../core/geom/3d/aabb/aabb3_expand_array.js";
|
|
10
|
-
import { compose_matrix4_array } from "../../../../../../core/geom/3d/compose_matrix4_array.js";
|
|
10
|
+
import { compose_matrix4_array } from "../../../../../../core/geom/3d/mat4/compose_matrix4_array.js";
|
|
11
11
|
import Quaternion from "../../../../../../core/geom/Quaternion.js";
|
|
12
12
|
import { v3_dot_array_array } from "../../../../../../core/geom/vec3/v3_dot_array_array.js";
|
|
13
13
|
import Vector3 from "../../../../../../core/geom/Vector3.js";
|
|
@@ -3,7 +3,7 @@ import { makeHelperBoxGeometry } from "../../../../../editor/process/symbolic/ma
|
|
|
3
3
|
import { makeHelperSphereGeometry } from "../../../../../editor/process/symbolic/makeHelperSphereGeometry.js";
|
|
4
4
|
import { assert } from "../../../../core/assert.js";
|
|
5
5
|
import { array_copy } from "../../../../core/collection/array/array_copy.js";
|
|
6
|
-
import { compose_matrix4_array } from "../../../../core/geom/3d/compose_matrix4_array.js";
|
|
6
|
+
import { compose_matrix4_array } from "../../../../core/geom/3d/mat4/compose_matrix4_array.js";
|
|
7
7
|
import Quaternion from "../../../../core/geom/Quaternion.js";
|
|
8
8
|
import Vector3 from "../../../../core/geom/Vector3.js";
|
|
9
9
|
import { DrawMode } from "../../ecs/mesh-v2/DrawMode.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { array_copy } from "../../../../core/collection/array/array_copy.js";
|
|
2
|
-
import { Ray3 } from "../../../../core/geom/3d/Ray3.js";
|
|
2
|
+
import { Ray3 } from "../../../../core/geom/3d/ray/Ray3.js";
|
|
3
3
|
import { sh3_basis_at } from "../../../../core/geom/3d/sphere/harmonics/sh3_basis_at.js";
|
|
4
4
|
import {
|
|
5
5
|
sh3_dering_optimize_positive
|
|
@@ -4,7 +4,7 @@ import { array_copy } from "../../../../../../core/collection/array/array_copy.j
|
|
|
4
4
|
import {
|
|
5
5
|
decode_octahedron_to_unit
|
|
6
6
|
} from "../../../../../../core/geom/3d/normal/octahedron/decode_octahedron_to_unit.js";
|
|
7
|
-
import { Ray3 } from "../../../../../../core/geom/3d/Ray3.js";
|
|
7
|
+
import { Ray3 } from "../../../../../../core/geom/3d/ray/Ray3.js";
|
|
8
8
|
import { v3_distance } from "../../../../../../core/geom/vec3/v3_distance.js";
|
|
9
9
|
import { v3_dot_array_array } from "../../../../../../core/geom/vec3/v3_dot_array_array.js";
|
|
10
10
|
import { max2 } from "../../../../../../core/math/max2.js";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
encode_unit_to_octahedron
|
|
9
9
|
} from "../../../../../../core/geom/3d/normal/octahedron/encode_unit_to_octahedron.js";
|
|
10
|
-
import { Ray3 } from "../../../../../../core/geom/3d/Ray3.js";
|
|
10
|
+
import { Ray3 } from "../../../../../../core/geom/3d/ray/Ray3.js";
|
|
11
11
|
import { sphere_fibonacci_point } from "../../../../../../core/geom/3d/sphere/sphere_fibonacci_point.js";
|
|
12
12
|
import { v3_distance } from "../../../../../../core/geom/vec3/v3_distance.js";
|
|
13
13
|
import { v3_dot_array_array } from "../../../../../../core/geom/vec3/v3_dot_array_array.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { array_copy } from "../../../../../core/collection/array/array_copy.js";
|
|
2
|
-
import { Ray3 } from "../../../../../core/geom/3d/Ray3.js";
|
|
2
|
+
import { Ray3 } from "../../../../../core/geom/3d/ray/Ray3.js";
|
|
3
3
|
import { sh3_basis_at } from "../../../../../core/geom/3d/sphere/harmonics/sh3_basis_at.js";
|
|
4
4
|
import { sh3_vector_accumulate } from "../../../../../core/geom/3d/sphere/harmonics/sh3_vector_accumulate.js";
|
|
5
5
|
import { vector_scale_array } from "../../../../../core/geom/vec/vector_scale_array.js";
|
|
@@ -46,5 +46,5 @@ export class PathTracedMesh {
|
|
|
46
46
|
#private;
|
|
47
47
|
}
|
|
48
48
|
import { AABB3 } from "../../../../core/geom/3d/aabb/AABB3.js";
|
|
49
|
-
import { Ray3 } from "../../../../core/geom/3d/Ray3.js";
|
|
49
|
+
import { Ray3 } from "../../../../core/geom/3d/ray/Ray3.js";
|
|
50
50
|
//# sourceMappingURL=PathTracedMesh.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PathTracedMesh.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/graphics/sh3/path_tracer/PathTracedMesh.js"],"names":[],"mappings":"AAeA;IACI;;;OAGG;IACH,IAFU,MAAM,CAEO;IAEvB;;;OAGG;IACH,MAFU,KAAK,CAEI;IAEnB;;;OAGG;IACH,KAFU,mBAAmB,GAAC,IAAI,CAEvB;IAGX;;;OAGG;IACH,UAFU,KAAK,CAAC,cAAc,GAAC,IAAI,CAEnB;IAEhB;;;OAGG;IACH,UAFU,gBAAgB,GAAC,IAAI,CAEf;IAKhB,uDAEC;IAED,2BAqBC;IAED,sBAGC;IAED,gDAQC;IAED,+CAEC;IAED;;;;OAIG;IACH,cAHW,IAAI,GACF,OAAO,CAWnB;IAED;;;;;;OAMG;IACH,SALW,MAAM,EAAE,OACR,MAAM,EAAE,GAAC,IAAI,aACb,MAAM,GACJ,MAAM,CA4BlB;;CACJ;sBAhJqB,wCAAwC;qBAIzC,
|
|
1
|
+
{"version":3,"file":"PathTracedMesh.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/graphics/sh3/path_tracer/PathTracedMesh.js"],"names":[],"mappings":"AAeA;IACI;;;OAGG;IACH,IAFU,MAAM,CAEO;IAEvB;;;OAGG;IACH,MAFU,KAAK,CAEI;IAEnB;;;OAGG;IACH,KAFU,mBAAmB,GAAC,IAAI,CAEvB;IAGX;;;OAGG;IACH,UAFU,KAAK,CAAC,cAAc,GAAC,IAAI,CAEnB;IAEhB;;;OAGG;IACH,UAFU,gBAAgB,GAAC,IAAI,CAEf;IAKhB,uDAEC;IAED,2BAqBC;IAED,sBAGC;IAED,gDAQC;IAED,+CAEC;IAED;;;;OAIG;IACH,cAHW,IAAI,GACF,OAAO,CAWnB;IAED;;;;;;OAMG;IACH,SALW,MAAM,EAAE,OACR,MAAM,EAAE,GAAC,IAAI,aACb,MAAM,GACJ,MAAM,CA4BlB;;CACJ;sBAhJqB,wCAAwC;qBAIzC,sCAAsC"}
|
|
@@ -2,9 +2,9 @@ import { mat4 } from "gl-matrix";
|
|
|
2
2
|
import { array_copy } from "../../../../core/collection/array/array_copy.js";
|
|
3
3
|
import { AABB3 } from "../../../../core/geom/3d/aabb/AABB3.js";
|
|
4
4
|
import { aabb3_from_v3_array_transformed } from "../../../../core/geom/3d/aabb/aabb3_from_v3_array_transformed.js";
|
|
5
|
-
import { decompose_matrix_4_array } from "../../../../core/geom/3d/decompose_matrix_4_array.js";
|
|
6
5
|
import { allocate_m4 } from "../../../../core/geom/3d/mat4/allocate_m4.js";
|
|
7
|
-
import {
|
|
6
|
+
import { decompose_matrix_4_array } from "../../../../core/geom/3d/mat4/decompose_matrix_4_array.js";
|
|
7
|
+
import { Ray3 } from "../../../../core/geom/3d/ray/Ray3.js";
|
|
8
8
|
import Quaternion from "../../../../core/geom/Quaternion.js";
|
|
9
9
|
import { v3_distance } from "../../../../core/geom/vec3/v3_distance.js";
|
|
10
10
|
import Vector3 from "../../../../core/geom/Vector3.js";
|
|
@@ -109,5 +109,5 @@ import { BVH } from "../../../../core/bvh2/bvh3/BVH.js";
|
|
|
109
109
|
import { PathTracedMesh } from "./PathTracedMesh.js";
|
|
110
110
|
import { AbstractLight } from "../../render/forward_plus/model/AbstractLight.js";
|
|
111
111
|
import { BufferedGeometryBVH } from "./BufferedGeometryBVH.js";
|
|
112
|
-
import { Ray3 } from "../../../../core/geom/3d/Ray3.js";
|
|
112
|
+
import { Ray3 } from "../../../../core/geom/3d/ray/Ray3.js";
|
|
113
113
|
//# sourceMappingURL=PathTracedScene.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PathTracedScene.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/graphics/sh3/path_tracer/PathTracedScene.js"],"names":[],"mappings":"AAoDA;IAGI;;;OAGG;IACH,eAFU,GAAG,CAEa;IAG1B;;;OAGG;IACH,QAFU,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAElB;IAEnB;;;OAGG;IACH,UAFU,aAAa,EAAE,CAEX;IAEd;;;OAGG;IACH,WAFU,GAAG,CAAC,KAAK,CAAC,cAAc,EAAE,mBAAmB,CAAC,CAElC;IAmBtB;;;;OAIG;IACH,6BAA6C;IAmF7C,iBAOC;IAED;;;;OAIG;IACH,uBAHW,KAAK,CAAC,cAAc,GACnB,mBAAmB,CAmB9B;IAED;;;OAGG;IACH,gBAFW,aAAa,QAMvB;IAED;;;;OAIG;IACH,cAHW,cAAc,GACZ,OAAO,CAInB;IAED;;;;OAIG;IACH,cAHW,cAAc,GACZ,OAAO,CAiCnB;IAED;;;;OAIG;IACH,iBAHW,cAAc,GACZ,OAAO,CAgBnB;IAED;;;;OAIG;IACH,yBAHW,KAAK,CAAC,QAAQ,GACZ,gBAAgB,CAI5B;IAED;;;;;OAKG;IACH,qBAJW,KAAK,CAAC,cAAc,YACpB,KAAK,CAAC,QAAQ,aACd,IAAI,GAAC,MAAM,EAAE,QAavB;IAED;;;;;OAKG;IACH,qBAJW,MAAM,EAAE,OACR,MAAM,EAAE,gBACR,IAAI,QA0Cd;IAED;;;;OAIG;IACH,cAHW,IAAI,GACF,OAAO,CAsCnB;IAED;;;;;OAKG;IACH,WAJW,MAAM,EAAE,OACR,MAAM,EAAE,GAAC,IAAI,GACZ,MAAM,CA+CjB;IAED;;;;;;OAMG;IACH,uBALW,MAAM,EAAE,cACR,MAAM,aACN,MAAM,EAAE,oBACR,MAAM,QAIhB;IAED;;;;;OAKG;IACH,mBAJW,MAAM,EAAE,cACR,MAAM,OACN,MAAM,EAAE,QAwHlB;;CACJ;oBA3lB8B,mCAAmC;+BAqBnC,qBAAqB;8BAJtB,kDAAkD;oCAC5C,0BAA0B;
|
|
1
|
+
{"version":3,"file":"PathTracedScene.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/graphics/sh3/path_tracer/PathTracedScene.js"],"names":[],"mappings":"AAoDA;IAGI;;;OAGG;IACH,eAFU,GAAG,CAEa;IAG1B;;;OAGG;IACH,QAFU,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAElB;IAEnB;;;OAGG;IACH,UAFU,aAAa,EAAE,CAEX;IAEd;;;OAGG;IACH,WAFU,GAAG,CAAC,KAAK,CAAC,cAAc,EAAE,mBAAmB,CAAC,CAElC;IAmBtB;;;;OAIG;IACH,6BAA6C;IAmF7C,iBAOC;IAED;;;;OAIG;IACH,uBAHW,KAAK,CAAC,cAAc,GACnB,mBAAmB,CAmB9B;IAED;;;OAGG;IACH,gBAFW,aAAa,QAMvB;IAED;;;;OAIG;IACH,cAHW,cAAc,GACZ,OAAO,CAInB;IAED;;;;OAIG;IACH,cAHW,cAAc,GACZ,OAAO,CAiCnB;IAED;;;;OAIG;IACH,iBAHW,cAAc,GACZ,OAAO,CAgBnB;IAED;;;;OAIG;IACH,yBAHW,KAAK,CAAC,QAAQ,GACZ,gBAAgB,CAI5B;IAED;;;;;OAKG;IACH,qBAJW,KAAK,CAAC,cAAc,YACpB,KAAK,CAAC,QAAQ,aACd,IAAI,GAAC,MAAM,EAAE,QAavB;IAED;;;;;OAKG;IACH,qBAJW,MAAM,EAAE,OACR,MAAM,EAAE,gBACR,IAAI,QA0Cd;IAED;;;;OAIG;IACH,cAHW,IAAI,GACF,OAAO,CAsCnB;IAED;;;;;OAKG;IACH,WAJW,MAAM,EAAE,OACR,MAAM,EAAE,GAAC,IAAI,GACZ,MAAM,CA+CjB;IAED;;;;;;OAMG;IACH,uBALW,MAAM,EAAE,cACR,MAAM,aACN,MAAM,EAAE,oBACR,MAAM,QAIhB;IAED;;;;;OAKG;IACH,mBAJW,MAAM,EAAE,cACR,MAAM,OACN,MAAM,EAAE,QAwHlB;;CACJ;oBA3lB8B,mCAAmC;+BAqBnC,qBAAqB;8BAJtB,kDAAkD;oCAC5C,0BAA0B;qBARzC,sCAAsC"}
|
|
@@ -9,8 +9,8 @@ import { array_quick_sort_by_lookup_map } from "../../../../core/collection/arra
|
|
|
9
9
|
import { strictEquals } from "../../../../core/function/strictEquals.js";
|
|
10
10
|
import { AABB3 } from "../../../../core/geom/3d/aabb/AABB3.js";
|
|
11
11
|
import { v3_morton_encode_bounded } from "../../../../core/geom/3d/morton/v3_morton_encode_bounded.js";
|
|
12
|
+
import { Ray3 } from "../../../../core/geom/3d/ray/Ray3.js";
|
|
12
13
|
import { ray3_array_compose } from "../../../../core/geom/3d/ray/ray3_array_compose.js";
|
|
13
|
-
import { Ray3 } from "../../../../core/geom/3d/Ray3.js";
|
|
14
14
|
import { v3_dot } from "../../../../core/geom/vec3/v3_dot.js";
|
|
15
15
|
import { v3_length } from "../../../../core/geom/vec3/v3_length.js";
|
|
16
16
|
import { saturate } from "../../../../core/math/clamp01.js";
|
|
@@ -10,5 +10,5 @@ export class PathTracer {
|
|
|
10
10
|
*/
|
|
11
11
|
path_trace(out: number[] | Float32Array, ray: number[] | Float32Array | Ray3, min_bounce: number, max_bounce: number, random: Function, scene: PathTracedScene): void;
|
|
12
12
|
}
|
|
13
|
-
import { Ray3 } from "../../../../core/geom/3d/Ray3.js";
|
|
13
|
+
import { Ray3 } from "../../../../core/geom/3d/ray/Ray3.js";
|
|
14
14
|
//# sourceMappingURL=PathTracer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PathTracer.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/graphics/sh3/path_tracer/PathTracer.js"],"names":[],"mappings":"AAiCA;IAGI;;;;;;;;OAQG;IACH,gBAPW,MAAM,EAAE,GAAC,YAAY,OACrB,MAAM,EAAE,GAAC,YAAY,GAAC,IAAI,cAC1B,MAAM,cACN,MAAM,2BAEN,eAAe,QAgFzB;CACJ;qBA1HoB,
|
|
1
|
+
{"version":3,"file":"PathTracer.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/graphics/sh3/path_tracer/PathTracer.js"],"names":[],"mappings":"AAiCA;IAGI;;;;;;;;OAQG;IACH,gBAPW,MAAM,EAAE,GAAC,YAAY,OACrB,MAAM,EAAE,GAAC,YAAY,GAAC,IAAI,cAC1B,MAAM,cACN,MAAM,2BAEN,eAAe,QAgFzB;CACJ;qBA1HoB,sCAAsC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { vec3 } from "gl-matrix";
|
|
2
2
|
import { array_copy } from "../../../../core/collection/array/array_copy.js";
|
|
3
|
-
import { Ray3 } from "../../../../core/geom/3d/Ray3.js";
|
|
3
|
+
import { Ray3 } from "../../../../core/geom/3d/ray/Ray3.js";
|
|
4
4
|
import { getBiasedNormalSample } from "./sampling/getBiasedNormalSample.js";
|
|
5
5
|
|
|
6
6
|
/*
|
|
@@ -8,8 +8,8 @@ import { Color } from "../../../../core/color/Color.js";
|
|
|
8
8
|
import { linear_to_sRGB } from "../../../../core/color/sRGB/linear_to_sRGB.js";
|
|
9
9
|
|
|
10
10
|
import { noop } from "../../../../core/function/noop.js";
|
|
11
|
+
import { Ray3 } from "../../../../core/geom/3d/ray/Ray3.js";
|
|
11
12
|
import { ray3_array_compose } from "../../../../core/geom/3d/ray/ray3_array_compose.js";
|
|
12
|
-
import { Ray3 } from "../../../../core/geom/3d/Ray3.js";
|
|
13
13
|
import Quaternion from "../../../../core/geom/Quaternion.js";
|
|
14
14
|
import { v3_distance } from "../../../../core/geom/vec3/v3_distance.js";
|
|
15
15
|
import Vector3 from "../../../../core/geom/Vector3.js";
|
|
@@ -20,7 +20,7 @@ import { is_typed_array_equals } from "../../../core/collection/array/typed/is_t
|
|
|
20
20
|
import { Color } from "../../../core/color/Color.js";
|
|
21
21
|
import { kelvin_to_rgb } from "../../../core/color/kelvin/kelvin_to_rgb.js";
|
|
22
22
|
import { AABB3 } from "../../../core/geom/3d/aabb/AABB3.js";
|
|
23
|
-
import { compose_matrix4_array } from "../../../core/geom/3d/compose_matrix4_array.js";
|
|
23
|
+
import { compose_matrix4_array } from "../../../core/geom/3d/mat4/compose_matrix4_array.js";
|
|
24
24
|
import { visualize_tetrahedral_mesh } from "../../../core/geom/3d/tetrahedra/visualize_tetrahedral_mesh.js";
|
|
25
25
|
import Quaternion from "../../../core/geom/Quaternion.js";
|
|
26
26
|
import { v3_length } from "../../../core/geom/vec3/v3_length.js";
|
|
@@ -1,2 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Given position of the source point, and target moving at a constant velocity, compute intercept.
|
|
3
|
+
* Simple example would be {@link target} being enemy running, and {@link source} being position of our archer, given that the arrow speed is {@link sourceSpeed}, where should the archer aim at in order to hit the moving target?
|
|
4
|
+
* @param {Vector3} result This is where the intercept point will be written if solution is found
|
|
5
|
+
* @param {Vector3} source Where to launch a projectile from
|
|
6
|
+
* @param {Vector3} target Where the target currently is
|
|
7
|
+
* @param {Vector3} targetVelocity Target's current velocity vector
|
|
8
|
+
* @param {number} sourceSpeed Speed of the projectile in question
|
|
9
|
+
* @return {boolean} true iff there is at least one real solution
|
|
10
|
+
*/
|
|
11
|
+
export function computeInterceptPoint(result: Vector3, source: Vector3, target: Vector3, targetVelocity: Vector3, sourceSpeed: number): boolean;
|
|
2
12
|
//# sourceMappingURL=computeInterceptPoint.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computeInterceptPoint.d.ts","sourceRoot":"","sources":["../../../../src/engine/physics/computeInterceptPoint.js"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"computeInterceptPoint.d.ts","sourceRoot":"","sources":["../../../../src/engine/physics/computeInterceptPoint.js"],"names":[],"mappings":"AASA;;;;;;;;;GASG;AACH,8CAPW,OAAO,UACP,OAAO,UACP,OAAO,kBACP,OAAO,eACP,MAAM,GACL,OAAO,CAyDlB"}
|
|
@@ -1,17 +1,35 @@
|
|
|
1
1
|
import { v3_dot } from "../../core/geom/vec3/v3_dot.js";
|
|
2
2
|
import { solveQuadratic } from "../../core/math/solveQuadratic.js";
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @type {number[]}
|
|
7
|
+
*/
|
|
8
|
+
const q_roots = [];
|
|
9
|
+
|
|
4
10
|
/**
|
|
5
11
|
* Given position of the source point, and target moving at a constant velocity, compute intercept.
|
|
6
12
|
* Simple example would be {@link target} being enemy running, and {@link source} being position of our archer, given that the arrow speed is {@link sourceSpeed}, where should the archer aim at in order to hit the moving target?
|
|
7
|
-
* @param {Vector3} result
|
|
8
|
-
* @param {Vector3} source
|
|
9
|
-
* @param {Vector3} target
|
|
10
|
-
* @param {Vector3} targetVelocity
|
|
11
|
-
* @param {number} sourceSpeed
|
|
12
|
-
* @return {boolean} true iff there is at least
|
|
13
|
+
* @param {Vector3} result This is where the intercept point will be written if solution is found
|
|
14
|
+
* @param {Vector3} source Where to launch a projectile from
|
|
15
|
+
* @param {Vector3} target Where the target currently is
|
|
16
|
+
* @param {Vector3} targetVelocity Target's current velocity vector
|
|
17
|
+
* @param {number} sourceSpeed Speed of the projectile in question
|
|
18
|
+
* @return {boolean} true iff there is at least one real solution
|
|
13
19
|
*/
|
|
14
|
-
function computeInterceptPoint(
|
|
20
|
+
export function computeInterceptPoint(
|
|
21
|
+
result,
|
|
22
|
+
source,
|
|
23
|
+
target,
|
|
24
|
+
targetVelocity,
|
|
25
|
+
sourceSpeed
|
|
26
|
+
) {
|
|
27
|
+
|
|
28
|
+
if (sourceSpeed < 0) {
|
|
29
|
+
// negative speed is invalid
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
|
|
15
33
|
const d_ts_x = target.x - source.x;
|
|
16
34
|
const d_ts_y = target.y - source.y;
|
|
17
35
|
const d_ts_z = target.z - source.z;
|
|
@@ -26,13 +44,12 @@ function computeInterceptPoint(result, source, target, targetVelocity, sourceSpe
|
|
|
26
44
|
);
|
|
27
45
|
|
|
28
46
|
// Solve quadratic
|
|
29
|
-
const
|
|
30
|
-
const root_count = solveQuadratic(ts, 0, a, b, c); // See quad(), below
|
|
47
|
+
const root_count = solveQuadratic(q_roots, 0, a, b, c); // See quad(), below
|
|
31
48
|
|
|
32
49
|
// Find smallest positive solution
|
|
33
50
|
if (root_count > 0) {
|
|
34
|
-
const root_0 =
|
|
35
|
-
const root_1 =
|
|
51
|
+
const root_0 = q_roots[0];
|
|
52
|
+
const root_1 = q_roots[1];
|
|
36
53
|
|
|
37
54
|
let t = Math.min(root_0, root_1);
|
|
38
55
|
|
|
@@ -41,7 +58,7 @@ function computeInterceptPoint(result, source, target, targetVelocity, sourceSpe
|
|
|
41
58
|
t = Math.max(root_0, root_1);
|
|
42
59
|
}
|
|
43
60
|
|
|
44
|
-
if (t
|
|
61
|
+
if (t >= 0) {
|
|
45
62
|
|
|
46
63
|
result.copy(targetVelocity);
|
|
47
64
|
result.multiplyScalar(t);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expanding_polytope_algorithm.d.ts","sourceRoot":"","sources":["../../../../../src/engine/physics/gjk/expanding_polytope_algorithm.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"expanding_polytope_algorithm.d.ts","sourceRoot":"","sources":["../../../../../src/engine/physics/gjk/expanding_polytope_algorithm.js"],"names":[],"mappings":"AAgEA;;;;;;;;;;GAUG;AACH,qDATW,MAAM,EAAE,iBACR,MAAM,KACN,MAAM,EAAE,KACR,MAAM,EAAE,KACR,MAAM,EAAE,KACR,MAAM,EAAE,SACR,eAAe,SACf,eAAe,QA8PzB"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { assert } from "../../../core/assert.js";
|
|
2
2
|
import { array_copy } from "../../../core/collection/array/array_copy.js";
|
|
3
3
|
import { array_swap } from "../../../core/collection/array/array_swap.js";
|
|
4
|
+
import { v3_compute_triangle_normal } from "../../../core/geom/3d/triangle/v3_compute_triangle_normal.js";
|
|
4
5
|
import { v3_dot } from "../../../core/geom/vec3/v3_dot.js";
|
|
5
6
|
import { v3_dot_array_array } from "../../../core/geom/vec3/v3_dot_array_array.js";
|
|
6
|
-
import { v3_length } from "../../../core/geom/vec3/v3_length.js";
|
|
7
|
-
import { v3_length_sqr } from "../../../core/geom/vec3/v3_length_sqr.js";
|
|
8
7
|
|
|
9
8
|
import { v3_negate_array } from "../../../core/geom/vec3/v3_negate_array.js";
|
|
10
9
|
|
|
@@ -28,7 +27,12 @@ const loose_edges = new Float32Array(EPA_MAX_NUM_LOOSE_EDGES * EDGE_ELEMENT_COUN
|
|
|
28
27
|
|
|
29
28
|
const scratch_v3 = new Float32Array(3);
|
|
30
29
|
|
|
31
|
-
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @param {number[]} target
|
|
33
|
+
* @param {number} target_index
|
|
34
|
+
* @param {number[]} v
|
|
35
|
+
*/
|
|
32
36
|
function write_v3(target, target_index, v) {
|
|
33
37
|
array_copy(v, 0, faces, target_index * 3, 3);
|
|
34
38
|
}
|
|
@@ -48,41 +52,14 @@ function write_face(faces, index, a, b, c) {
|
|
|
48
52
|
write_v3(faces, index4 + 1, b);
|
|
49
53
|
write_v3(faces, index4 + 2, c);
|
|
50
54
|
|
|
51
|
-
// normalise(cross(b-a, c-a)); //ABC
|
|
52
|
-
const ba_x = b[0] - a[0];
|
|
53
|
-
const ba_y = b[1] - a[1];
|
|
54
|
-
const ba_z = b[2] - a[2];
|
|
55
|
-
|
|
56
|
-
const ca_x = c[0] - a[0];
|
|
57
|
-
const ca_y = c[1] - a[1];
|
|
58
|
-
const ca_z = c[2] - a[2];
|
|
59
|
-
|
|
60
|
-
// cross product
|
|
61
|
-
|
|
62
|
-
const cross_x = ba_y * ca_z - ba_z * ca_y;
|
|
63
|
-
const cross_y = ba_z * ca_x - ba_x * ca_z;
|
|
64
|
-
const cross_z = ba_x * ca_y - ba_y * ca_x;
|
|
65
|
-
|
|
66
55
|
const normal_offset = (index4 + 3) * 3;
|
|
67
56
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
faces[normal_offset] = 0;
|
|
75
|
-
faces[normal_offset + 1] = 1;
|
|
76
|
-
faces[normal_offset + 2] = 0;
|
|
77
|
-
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
const length_inv = 1 / length;
|
|
82
|
-
|
|
83
|
-
faces[normal_offset] = cross_x * length_inv;
|
|
84
|
-
faces[normal_offset + 1] = cross_y * length_inv;
|
|
85
|
-
faces[normal_offset + 2] = cross_z * length_inv;
|
|
57
|
+
v3_compute_triangle_normal(
|
|
58
|
+
faces, normal_offset,
|
|
59
|
+
a[0], a[1], a[2],
|
|
60
|
+
b[0], b[1], b[2],
|
|
61
|
+
c[0], c[1], c[2]
|
|
62
|
+
);
|
|
86
63
|
}
|
|
87
64
|
|
|
88
65
|
/**
|
|
@@ -369,27 +346,10 @@ function construct_normal(result_offset, edge_index, p_x, p_y, p_z) {
|
|
|
369
346
|
const edge_by = loose_edges[edge_offset + 4];
|
|
370
347
|
const edge_bz = loose_edges[edge_offset + 5];
|
|
371
348
|
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
const v1z = edge_az - p_z;
|
|
379
|
-
|
|
380
|
-
const crossX = v0y * v1z - v0z * v1y;
|
|
381
|
-
const crossY = v0z * v1x - v0x * v1z;
|
|
382
|
-
const crossZ = v0x * v1y - v0y * v1x;
|
|
383
|
-
|
|
384
|
-
const l_sqr = v3_length_sqr(crossX, crossY, crossZ);
|
|
385
|
-
|
|
386
|
-
const l_inv = 1 / Math.sqrt(l_sqr);
|
|
387
|
-
|
|
388
|
-
const x = crossX * l_inv;
|
|
389
|
-
const y = crossY * l_inv;
|
|
390
|
-
const z = crossZ * l_inv;
|
|
391
|
-
|
|
392
|
-
faces[result_offset] = x;
|
|
393
|
-
faces[result_offset + 1] = y;
|
|
394
|
-
faces[result_offset + 2] = z;
|
|
349
|
+
v3_compute_triangle_normal(
|
|
350
|
+
faces, result_offset,
|
|
351
|
+
edge_ax, edge_ay, edge_az,
|
|
352
|
+
edge_bx, edge_by, edge_bz,
|
|
353
|
+
p_x, p_y, p_z
|
|
354
|
+
);
|
|
395
355
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @
|
|
2
|
+
* Note that bones are defined as a combination of Joint ({@link Transform}) and bone length. Joint defines the origin of the bone.
|
|
3
|
+
* Last joint's position is expected to be bone_length distance from the target if target is reachable and be oriented towards that target ({@link Transform.lookAt})
|
|
4
|
+
* @param {Transform[]} joints Will be updated as a result of the solve
|
|
4
5
|
* @param {number[]} lengths distance to next bone
|
|
5
6
|
* @param {Vector3} origin where should the first joint be placed at
|
|
6
7
|
* @param {Vector3} target where should the last joint be placed at
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fabrik_solve.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/physics/inverse_kinematics/fabrik/fabrik_solve.js"],"names":[],"mappings":"AAWA
|
|
1
|
+
{"version":3,"file":"fabrik_solve.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/physics/inverse_kinematics/fabrik/fabrik_solve.js"],"names":[],"mappings":"AAWA;;;;;;;;;GASG;AACH,qCAPW,SAAS,EAAE,WACX,MAAM,EAAE,UACR,OAAO,UACP,OAAO,mBACP,MAAM,uBACN,MAAM,QAgFhB;oBAlGmB,kCAAkC"}
|
|
@@ -10,8 +10,9 @@ const scratch_v3_1 = new Vector3();
|
|
|
10
10
|
const scratch_quat = new Quaternion();
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
14
|
-
* @
|
|
13
|
+
* Note that bones are defined as a combination of Joint ({@link Transform}) and bone length. Joint defines the origin of the bone.
|
|
14
|
+
* Last joint's position is expected to be bone_length distance from the target if target is reachable and be oriented towards that target ({@link Transform.lookAt})
|
|
15
|
+
* @param {Transform[]} joints Will be updated as a result of the solve
|
|
15
16
|
* @param {number[]} lengths distance to next bone
|
|
16
17
|
* @param {Vector3} origin where should the first joint be placed at
|
|
17
18
|
* @param {Vector3} target where should the last joint be placed at
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"two_joint_ik.d.ts","sourceRoot":"","sources":["../../../../../src/engine/physics/inverse_kinematics/two_joint_ik.js"],"names":[],"mappings":"AA0BA;;;;;;;;;;;GAWG;AACH,gCAVW,OAAO,KACP,OAAO,KACP,OAAO,KACP,OAAO,OACP,MAAM,QACN,UAAU,QACV,UAAU,QACV,UAAU,QACV,UAAU,QAoEpB;oBAtGmB,+BAA+B;
|
|
1
|
+
{"version":3,"file":"two_joint_ik.d.ts","sourceRoot":"","sources":["../../../../../src/engine/physics/inverse_kinematics/two_joint_ik.js"],"names":[],"mappings":"AA0BA;;;;;;;;;;;GAWG;AACH,gCAVW,OAAO,KACP,OAAO,KACP,OAAO,KACP,OAAO,OACP,MAAM,QACN,UAAU,QACV,UAAU,QACV,UAAU,QACV,UAAU,QAoEpB;oBAtGmB,+BAA+B;uBAF5B,kCAAkC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { v3_compute_interior_angle } from "../../../core/geom/3d/v3_compute_interior_angle.js";
|
|
2
1
|
import Quaternion from "../../../core/geom/Quaternion.js";
|
|
2
|
+
import { v3_compute_interior_angle } from "../../../core/geom/vec3/v3_compute_interior_angle.js";
|
|
3
3
|
import Vector3 from "../../../core/geom/Vector3.js";
|
|
4
4
|
import { clamp } from "../../../core/math/clamp.js";
|
|
5
5
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Ray3.d.ts","sourceRoot":"","sources":["../../../../../src/core/geom/3d/Ray3.js"],"names":[],"mappings":"AASA;;;GAGG;AACH;IA0MI;;;;;;;;;;OAUG;IACH,sBATW,MAAM,YACN,MAAM,YACN,MAAM,eACN,MAAM,eACN,MAAM,eACN,MAAM,UACN,MAAM,GACL,IAAI,CAqBf;IAvOD,cAKC;IAMD,iBAEC;IAND,gBAEC;IAGG,OAAW;IAOf;;;OAGG;IACH,cAFW,MAAM,EAAE,GAAC,YAAY,EAI/B;IAVD,cAMW,MAAM,EAAE,GAAC,YAAY,CAJ/B;IAUD,uBAEC;IAED,uBAEC;IAED,uBAEC;IAGD;;;;;OAKG;IACH,aAJW,MAAM,KACN,MAAM,KACN,MAAM,QAUhB;IAHG,UAAW;IACX,UAAW;IACX,UAAW;IAQf;;;OAGG;IACH,iBAFW,MAAM,EAAE,GAAC,YAAY,EAI/B;IAVD,iBAMW,MAAM,EAAE,GAAC,YAAY,CAJ/B;IAWD,0BAEC;IAED,0BAEC;IAED,0BAEC;IAED;;;;;OAKG;IACH,gBAJW,MAAM,KACN,MAAM,KACN,MAAM,QAUhB;IAHG,UAAW;IACX,UAAW;IACX,UAAW;IAGf,2BAEC;IAED;;;;;;;OAOG;IACH,gCANW,MAAM,KACN,MAAM,KACN,MAAM,aACN,MAAM,EAAE,GAAC,YAAY,GAAC,IAAI,sBAC1B,MAAM,EAAE,GAAC,YAAY,GAAC,IAAI,QA6BpC;IAED;;;OAGG;IACH,uBAFW,MAAM,QAMhB;IAED;;;OAGG;IACH,iBAFW,MAAM,EAAE,GAAC,IAAI,GAAC,YAAY,QAepC;IAED;;;OAGG;IACH,SAFa,IAAI,CAQhB;IAED;;;OAGG;IACH,YAFW,IAAI,QAId;IAED,eAEC;IAED;;;;OAIG;IACH,cAHW,IAAI,GACF,OAAO,CAInB;CAiCJ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"aabb3_compute_from_triangle.d.ts","sourceRoot":"","sources":["../../../../../src/core/geom/3d/aabb3_compute_from_triangle.js"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AACH,oDAPW,MAAM,EAAE,GAAC,YAAY,iBACrB,MAAM,YACN,MAAM,EAAE,GAAC,YAAY,WACrB,MAAM,WACN,MAAM,WACN,MAAM,QAgChB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"apply_mat4_transform_to_direction_v3_array.d.ts","sourceRoot":"","sources":["../../../../../src/core/geom/3d/apply_mat4_transform_to_direction_v3_array.js"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,mEAPW,MAAM,EAAE,GAAC,YAAY,GAAC,YAAY,iBAClC,MAAM,eACN,MAAM,EAAE,GAAC,YAAY,GAAC,YAAY,sBAClC,MAAM,gBACN,MAAM,QACN,MAAK,MAAM,EAAE,GAAC,YAAY,QA4CpC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"apply_mat4_transform_to_v3_array.d.ts","sourceRoot":"","sources":["../../../../../src/core/geom/3d/apply_mat4_transform_to_v3_array.js"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,yDAPW,MAAM,EAAE,GAAC,YAAY,GAAC,YAAY,iBAClC,MAAM,eACN,MAAM,EAAE,GAAC,YAAY,GAAC,YAAY,sBAClC,MAAM,gBACN,MAAM,QACN,MAAK,MAAM,EAAE,GAAC,YAAY,QA8CpC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compose_matrix4_array.d.ts","sourceRoot":"","sources":["../../../../../src/core/geom/3d/compose_matrix4_array.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,8CALW,MAAM,EAAE,GAAC,YAAY,GAAC,IAAI,YACzB;IAAE,CAAC,EAAC,MAAM,CAAC;IAAC,CAAC,EAAC,MAAM,CAAC;IAAC,CAAC,EAAC,MAAM,CAAA;CAAE,YAChC;IAAE,CAAC,EAAC,MAAM,CAAC;IAAC,CAAC,EAAC,MAAM,CAAC;IAAC,CAAC,EAAC,MAAM,CAAC;IAAC,CAAC,EAAC,MAAM,CAAA;CAAE,SAC1C;IAAE,CAAC,EAAC,MAAM,CAAC;IAAC,CAAC,EAAC,MAAM,CAAC;IAAC,CAAC,EAAC,MAAM,CAAA;CAAE,QA+C3C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compute_bounding_sphere_of_2_spheres.d.ts","sourceRoot":"","sources":["../../../../../src/core/geom/3d/compute_bounding_sphere_of_2_spheres.js"],"names":[],"mappings":"AAiBA;;;;;GAKG;AACH,6DAJW,YAAY,GAAC,IAAI,GAAC,MAAM,EAAE,KAC1B,YAAY,GAAC,IAAI,GAAC,MAAM,EAAE,KAC1B,YAAY,GAAC,IAAI,GAAC,MAAM,EAAE,QAoDpC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compute_triangle_normal.d.ts","sourceRoot":"","sources":["../../../../../src/core/geom/3d/compute_triangle_normal.js"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,gDALW,MAAM,EAAE,GAAC,IAAI,GAAC,YAAY,GAAC,YAAY,MACvC,MAAM,EAAE,GAAC,IAAI,GAAC,YAAY,GAAC,YAAY,GAAC;IAAC,CAAC,EAAC,MAAM,CAAC;IAAC,CAAC,EAAC,MAAM,CAAC;IAAC,CAAC,EAAC,MAAM,CAAA;CAAC,MACtE,MAAM,EAAE,GAAC,IAAI,GAAC,YAAY,GAAC,YAAY,GAAC;IAAC,CAAC,EAAC,MAAM,CAAC;IAAC,CAAC,EAAC,MAAM,CAAC;IAAC,CAAC,EAAC,MAAM,CAAA;CAAC,MACtE,MAAM,EAAE,GAAC,IAAI,GAAC,YAAY,GAAC,YAAY,GAAC;IAAC,CAAC,EAAC,MAAM,CAAC;IAAC,CAAC,EAAC,MAAM,CAAC;IAAC,CAAC,EAAC,MAAM,CAAA;CAAC,QAiBhF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"decompose_matrix_4_array.d.ts","sourceRoot":"","sources":["../../../../../src/core/geom/3d/decompose_matrix_4_array.js"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,+CALW,MAAM,EAAE,YACR,OAAO,YACP,UAAU,SACV,OAAO,QA0DjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eulerAnglesFromMatrix.d.ts","sourceRoot":"","sources":["../../../../../src/core/geom/3d/eulerAnglesFromMatrix.js"],"names":[],"mappings":"AAkBA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,2CANW,MAAM,EAAE,MACR,MAAM,EAAE,GAAC,YAAY,GAAC,IAAI,MAC1B,MAAM,MACN,MAAM,MACN,MAAM,QA2EhB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"m4_extract_scale.d.ts","sourceRoot":"","sources":["../../../../../src/core/geom/3d/m4_extract_scale.js"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,sCAJW,MAAM,EAAE,GAAC,YAAY,cACrB,MAAM,QACN,MAAM,EAAE,GAAC,YAAY,QA6B/B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"v3_compute_interior_angle.d.ts","sourceRoot":"","sources":["../../../../../src/core/geom/3d/v3_compute_interior_angle.js"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,6CALW;IAAC,CAAC,EAAC,MAAM,CAAC;IAAC,CAAC,EAAC,MAAM,CAAC;IAAC,CAAC,EAAC,MAAM,CAAA;CAAC,KAC9B;IAAC,CAAC,EAAC,MAAM,CAAC;IAAC,CAAC,EAAC,MAAM,CAAC;IAAC,CAAC,EAAC,MAAM,CAAA;CAAC,KAC9B;IAAC,CAAC,EAAC,MAAM,CAAC;IAAC,CAAC,EAAC,MAAM,CAAC;IAAC,CAAC,EAAC,MAAM,CAAA;CAAC,GAC5B,MAAM,CAiBlB"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/core/geom/3d/{decompose_matrix_4_array.d.ts → mat4/decompose_matrix_4_array.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/core/geom/3d/{compute_triangle_normal.d.ts → triangle/compute_triangle_normal.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|