@adatechnology/game-destruction-three 0.23.2 → 0.24.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.
@@ -12031,7 +12031,7 @@ void main(){vec2 d=gl_PointCoord-.5;float r=length(d)*2.;if(r>1.)discard;float a
12031
12031
  ricochetDeg: 10,
12032
12032
  hitDebris: "chips",
12033
12033
  breakDebris: "dust",
12034
- visual: { innerColor: 12085567 },
12034
+ visual: { innerColor: 12085567, unitColor: 11031866 },
12035
12035
  thermal: {
12036
12036
  conductivity: 0.15,
12037
12037
  heatCapacity: 2.5
@@ -15723,7 +15723,7 @@ void main(){vec2 d=gl_PointCoord-.5;float r=length(d)*2.;if(r>1.)discard;float a
15723
15723
  const maxAlive = this.low ? Math.floor(this.maxFragments / 2) : this.maxFragments;
15724
15724
  for (const fr of ev.fragments) {
15725
15725
  const fdef = this.world.materials.get(fr.material);
15726
- const tone = fr.inner && fdef?.visual?.innerColor !== void 0 ? fdef.visual.innerColor : fdef === def ? color : fallbackColor(fr.material, fdef);
15726
+ const tone = fr.unit && fdef?.visual?.unitColor !== void 0 ? fdef.visual.unitColor : fr.inner && fdef?.visual?.innerColor !== void 0 ? fdef.visual.innerColor : fdef === def ? color : fallbackColor(fr.material, fdef);
15727
15727
  this.fragments.spawn(fr, this.fragments.materialFor(fr.material, tone, false), ev.object, maxAlive);
15728
15728
  }
15729
15729
  if (def?.visual?.innerColor !== void 0 || pv?.material === "concrete" || pv?.material === "brick") this.trickleFrom(ev.center, [0, 0, 0], color);