mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-06-25 17:10:43 +00:00
wip
This commit is contained in:
parent
0e7b517554
commit
0c8b1055d4
3 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue