@mml-io/3d-web-client-core 0.0.0-experimental-c7dfa04-20250515 → 0.0.0-experimental-c389fca-20250625
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 +7 -1
- package/build/index.js.map +2 -2
- package/package.json +3 -3
package/build/index.js
CHANGED
@@ -1533,6 +1533,7 @@ var Character = class extends Group {
|
|
1533
1533
|
};
|
1534
1534
|
|
1535
1535
|
// src/character/CharacterManager.ts
|
1536
|
+
import { radToDeg } from "@mml-io/mml-web";
|
1536
1537
|
import { Euler as Euler2, Group as Group2, Quaternion as Quaternion5, Vector3 as Vector39 } from "three";
|
1537
1538
|
|
1538
1539
|
// src/character/LocalController.ts
|
@@ -2321,9 +2322,14 @@ var CharacterManager = class {
|
|
2321
2322
|
}
|
2322
2323
|
getLocalCharacterPositionAndRotation() {
|
2323
2324
|
if (this.localCharacter && this.localCharacter && this.localCharacter) {
|
2325
|
+
const rotation = this.localCharacter.rotation;
|
2324
2326
|
return {
|
2325
2327
|
position: this.localCharacter.position,
|
2326
|
-
rotation:
|
2328
|
+
rotation: {
|
2329
|
+
x: radToDeg(rotation.x),
|
2330
|
+
y: radToDeg(rotation.y),
|
2331
|
+
z: radToDeg(rotation.z)
|
2332
|
+
}
|
2327
2333
|
};
|
2328
2334
|
}
|
2329
2335
|
return {
|