This commit is contained in:
syuilo 2026-05-27 19:54:40 +09:00
commit 0c8b1055d4
3 changed files with 3 additions and 3 deletions

View file

@ -70,6 +70,7 @@ export class PlayerContainer {
mat.emissiveTexture = avatarTex;
mat.roughness = 0;
mat.metallic = 0;
mat.backFaceCulling = false;
mesh.material = mat;
}
}

View file

@ -503,8 +503,8 @@ export class RoomEngine extends EngineBase<{
this.timer.setInterval(() => {
const camera = this.scene.activeCamera!;
const myPos = camera.position;
const myRotation = camera.rotation;
const myPos = camera.globalPosition;
const myRotation = camera.absoluteRotation.toEulerAngles();
this.ev('changeMyPlayerState', {
position: [myPos.x, myPos.y, myPos.z],
rotation: [myRotation.x, myRotation.y, myRotation.z],

View file

@ -71,7 +71,6 @@ export class Multiplayer {
}
private onSync(states: Record<string, PlayerState>) {
console.log('sync', states);
this.controller.updatePlayerStates(states);
}