mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-07-28 10:34:37 +02:00
wip
This commit is contained in:
@@ -70,6 +70,7 @@ export class PlayerContainer {
|
||||
mat.emissiveTexture = avatarTex;
|
||||
mat.roughness = 0;
|
||||
mat.metallic = 0;
|
||||
mat.backFaceCulling = false;
|
||||
mesh.material = mat;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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],
|
||||
|
||||
@@ -71,7 +71,6 @@ export class Multiplayer {
|
||||
}
|
||||
|
||||
private onSync(states: Record<string, PlayerState>) {
|
||||
console.log('sync', states);
|
||||
this.controller.updatePlayerStates(states);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user