@mml-io/3d-web-client-core 0.0.0-experimental-31c8e60-20240506 → 0.0.0-experimental-a3bab94-20240513
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.
@@ -25,10 +25,10 @@ export type CharacterManagerConfig = {
|
|
25
25
|
username: string;
|
26
26
|
characterDescription: CharacterDescription;
|
27
27
|
};
|
28
|
+
updateLocationHash?: boolean;
|
28
29
|
};
|
29
30
|
export declare class CharacterManager {
|
30
31
|
private config;
|
31
|
-
private updateLocationHash;
|
32
32
|
readonly headTargetOffset: Vector3;
|
33
33
|
private localClientId;
|
34
34
|
remoteCharacters: Map<number, Character>;
|
package/build/index.js
CHANGED
@@ -1743,7 +1743,6 @@ function decodeCharacterAndCamera(hash) {
|
|
1743
1743
|
var CharacterManager = class {
|
1744
1744
|
constructor(config) {
|
1745
1745
|
this.config = config;
|
1746
|
-
this.updateLocationHash = true;
|
1747
1746
|
this.headTargetOffset = new Vector38(0, 1.3, 0);
|
1748
1747
|
this.localClientId = 0;
|
1749
1748
|
this.remoteCharacters = /* @__PURE__ */ new Map();
|
@@ -1900,7 +1899,7 @@ var CharacterManager = class {
|
|
1900
1899
|
this.remoteCharacterControllers.delete(id);
|
1901
1900
|
}
|
1902
1901
|
}
|
1903
|
-
if (this.updateLocationHash && this.config.timeManager.frame % 60 === 0) {
|
1902
|
+
if (this.config.updateLocationHash && this.config.timeManager.frame % 60 === 0) {
|
1904
1903
|
window.location.hash = encodeCharacterAndCamera(
|
1905
1904
|
this.localCharacter,
|
1906
1905
|
this.config.cameraManager.camera
|