@mml-io/3d-web-client-core 0.13.0 → 0.15.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/index.js CHANGED
@@ -834,7 +834,7 @@ var CharacterModel = class {
834
834
  }
835
835
  setMainMesh(mainMesh) {
836
836
  this.mesh = mainMesh;
837
- this.mesh.position.set(0, -0.4, 0);
837
+ this.mesh.position.set(0, -0.44, 0);
838
838
  this.mesh.traverse((child) => {
839
839
  if (child.type === "SkinnedMesh") {
840
840
  child.castShadow = true;
@@ -909,8 +909,9 @@ var CharacterModel = class {
909
909
  }
910
910
  });
911
911
  animationClip.tracks = animationClip.tracks.filter((track) => {
912
- const trackName = track.name.split(".")[0];
913
- return availableBones.has(trackName);
912
+ const [trackName, trackProperty] = track.name.split(".");
913
+ const shouldAnimate = availableBones.has(trackName) && trackProperty !== "position" && trackProperty !== "scale";
914
+ return shouldAnimate;
914
915
  });
915
916
  return animationClip;
916
917
  }
@@ -1173,10 +1174,10 @@ var fontScale = 5;
1173
1174
  var defaultLabelColor = new Color2(0);
1174
1175
  var defaultFontColor = new Color2(16777215);
1175
1176
  var defaultLabelAlignment = "center" /* center */;
1176
- var defaultLabelFontSize = 9;
1177
+ var defaultLabelFontSize = 8;
1177
1178
  var defaultLabelPadding = 0;
1178
1179
  var defaultLabelWidth = 0.25;
1179
- var defaultLabelHeight = 0.125;
1180
+ var defaultLabelHeight = 0.1;
1180
1181
  var defaultLabelCastShadows = true;
1181
1182
  var tooltipGeometry = new PlaneGeometry(1, 1, 1, 1);
1182
1183
  var CharacterTooltip = class extends Mesh3 {
@@ -1185,7 +1186,7 @@ var CharacterTooltip = class extends Mesh3 {
1185
1186
  this.visibleOpacity = 0.85;
1186
1187
  this.targetOpacity = 0;
1187
1188
  this.fadingSpeed = 0.02;
1188
- this.secondsToFadeOut = 15;
1189
+ this.secondsToFadeOut = 10;
1189
1190
  this.props = {
1190
1191
  content: "",
1191
1192
  alignment: defaultLabelAlignment,
@@ -1242,7 +1243,7 @@ var CharacterTooltip = class extends Mesh3 {
1242
1243
  this.tooltipMaterial.needsUpdate = true;
1243
1244
  this.scale.x = width / (100 * fontScale);
1244
1245
  this.scale.y = height / (100 * fontScale);
1245
- this.position.y = 1.6;
1246
+ this.position.y = 1.4;
1246
1247
  }
1247
1248
  setText(text, temporary = false) {
1248
1249
  this.redrawText(text);
@@ -1788,7 +1789,7 @@ var CharacterManager = class {
1788
1789
  );
1789
1790
  this.localCharacter.position.set(spawnPosition.x, spawnPosition.y, spawnPosition.z);
1790
1791
  this.localCharacter.rotation.set(spawnRotation.x, spawnRotation.y, spawnRotation.z);
1791
- (_a = character.tooltip) == null ? void 0 : _a.setText(`${id}`);
1792
+ (_a = character.tooltip) == null ? void 0 : _a.setText(`${id}`, true);
1792
1793
  this.group.add(character);
1793
1794
  this.localCharacterSpawned = true;
1794
1795
  }
@@ -2564,7 +2565,7 @@ var ppssaoOptions = {
2564
2565
  };
2565
2566
  var n8ssaoValues = {
2566
2567
  enabled: true,
2567
- halfRes: false,
2568
+ halfRes: true,
2568
2569
  aoRadius: 5,
2569
2570
  distanceFalloff: 3,
2570
2571
  intensity: 1,