@woosh/meep-engine 2.33.53 → 2.33.54

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.
@@ -0,0 +1,10 @@
1
+ import {AbstractShape3D} from "./AbstractShape3D";
2
+
3
+ export class TransformedShape3D extends AbstractShape3D {
4
+
5
+ static from_m4(subject: AbstractShape3D, matrix: ArrayLike<number>): TransformedShape3D
6
+
7
+ static from_translation_scale(subject: AbstractShape3D, translation: ArrayLike<number>, scale: ArrayLike<number>): TransformedShape3D
8
+
9
+ static from_scale(subject: AbstractShape3D, scale: ArrayLike<number>): TransformedShape3D
10
+ }
@@ -0,0 +1,5 @@
1
+ import {AbstractShape3D} from "./AbstractShape3D";
2
+
3
+ export class UnionShape3D extends AbstractShape3D {
4
+ static from(children: AbstractShape3D[]): UnionShape3D
5
+ }
@@ -119,6 +119,11 @@ export class UnionShape3D extends AbstractShape3D {
119
119
  this.__volume_overlap_fraction = tap_overlaps / (VOLUME_OVERLAP_ESTIMATION_TAPS);
120
120
  }
121
121
 
122
+ /**
123
+ *
124
+ * @param {AbstractShape3D[]} children
125
+ * @returns {UnionShape3D}
126
+ */
122
127
  static from(children) {
123
128
  const r = new UnionShape3D();
124
129
 
@@ -0,0 +1,5 @@
1
+ import {AbstractShape3D} from "./AbstractShape3D";
2
+
3
+ export class UnitCubeShape3D extends AbstractShape3D {
4
+ static INSTANCE: UnitCubeShape3D
5
+ }
@@ -58,7 +58,7 @@ export class UnitCubeShape3D extends AbstractShape3D {
58
58
  }
59
59
 
60
60
  signed_distance_gradient_at_point(result, point) {
61
- return compute_signed_distance_gradient_by_sampling(result,this, point);
61
+ return compute_signed_distance_gradient_by_sampling(result, this, point);
62
62
  }
63
63
 
64
64
  signed_distance_at_point(point) {
@@ -99,3 +99,5 @@ export class UnitCubeShape3D extends AbstractShape3D {
99
99
  randomPointInBox(random, result, result_offset);
100
100
  }
101
101
  }
102
+
103
+ UnitCubeShape3D.INSTANCE = new UnitCubeShape3D();
@@ -0,0 +1,5 @@
1
+ import {AbstractShape3D} from "./AbstractShape3D";
2
+
3
+ export class UnitSphereShape3D extends AbstractShape3D {
4
+ static INSTANCE: UnitSphereShape3D
5
+ }
@@ -30,7 +30,7 @@ export class UnitSphereShape3D extends AbstractShape3D {
30
30
  }
31
31
 
32
32
  signed_distance_gradient_at_point(result, point) {
33
- return compute_signed_distance_gradient_by_sampling(result,this, point);
33
+ return compute_signed_distance_gradient_by_sampling(result, this, point);
34
34
  }
35
35
 
36
36
  signed_distance_at_point(point) {
@@ -53,3 +53,5 @@ export class UnitSphereShape3D extends AbstractShape3D {
53
53
  randomPointInSphere(random, result, result_offset);
54
54
  }
55
55
  }
56
+
57
+ UnitSphereShape3D.INSTANCE = new UnitSphereShape3D();
@@ -17,8 +17,10 @@ export function write_property(root, parts, part_offset, part_count, value) {
17
17
 
18
18
  const part = parts[i + part_offset];
19
19
 
20
- if (typeof thing[part] !== 'undefined') {
21
- thing = thing[part];
20
+ const thing_part = thing[part];
21
+
22
+ if (typeof thing_part !== 'undefined') {
23
+ thing = thing_part;
22
24
  } else {
23
25
 
24
26
  const getter_name = `get${capitalize(part)}`;
@@ -40,7 +40,7 @@ export class AmbientOcclusionPostProcessEffect extends EnginePlugin {
40
40
  defines.PERSPECTIVE_CAMERA = 1;
41
41
 
42
42
  // More samples = better quality
43
- defines.NUM_SAMPLES = 7;
43
+ defines.NUM_SAMPLES = 13;
44
44
 
45
45
  // More rings = better quality
46
46
  defines.NUM_RINGS = 4;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "productName": "Meep",
6
6
  "description": "production-ready JavaScript game engine based on Entity Component System Architecture",
7
7
  "author": "Alexander Goldring",
8
- "version": "2.33.53",
8
+ "version": "2.33.54",
9
9
  "dependencies": {
10
10
  "gl-matrix": "3.4.3",
11
11
  "fast-levenshtein": "2.0.6",