@adatechnology/game-vfx-three 0.7.1 → 0.7.3

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.
@@ -5671,7 +5671,7 @@ var GameVfxThree = (() => {
5671
5671
  const { core, def, random, x, y, z } = context;
5672
5672
  const mark = def.mark;
5673
5673
  const keepsMarks = !core.marklessAt?.(x, z);
5674
- if (keepsMarks && mark.crater && mark.dent && y < 1.2) {
5674
+ if (keepsMarks && mark.crater && mark.dent && y < 1.2 && (core.cratersAt?.(x, z) ?? true)) {
5675
5675
  core.emit({ type: "crater", x, z, radius: mark.crater, depth: mark.dent });
5676
5676
  core.trace?.crater?.(x, z, mark.crater, mark.dent);
5677
5677
  addCrater(core.marks, core.ground, random, { x, z, radius: mark.crater, depth: mark.dent, marks: core.layers.mark });
@@ -7429,6 +7429,7 @@ var GameVfxThree = (() => {
7429
7429
  clock: { time: 0, lastBlast: -1, lod: 1, forcedLod: null },
7430
7430
  groundAt,
7431
7431
  ...options.marklessAt ? { marklessAt: options.marklessAt } : {},
7432
+ ...options.cratersAt ? { cratersAt: options.cratersAt } : {},
7432
7433
  emit: (request) => options.onRequest?.(request)
7433
7434
  };
7434
7435
  function definitionOf(id) {