1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-22 23:24:10 +02:00
This commit is contained in:
syuilo
2026-04-28 15:54:41 +09:00
parent 836de1bb28
commit 11e55d8fe8
3 changed files with 19 additions and 16 deletions

View File

@@ -308,13 +308,11 @@ export class RoomEngine extends EventEmitter<RoomEngineEvents> {
this.camera.inertia = 0.75;
} else {
this.camera.inputs.add(new FreeCameraManualInput({
moveSensitivity: 0.001 * WORLD_SCALE,
rotationSensitivity: 0.01,
moveSensitivity: 0.002 * WORLD_SCALE,
rotationSensitivity: 0.0003,
}));
}
this.camera.attachControl(this.canvas);
//this.scene.activeCamera = this.camera;
this.roomLight = new BABYLON.SpotLight('roomLight', new BABYLON.Vector3(0, cm(249), 0), new BABYLON.Vector3(0, -1, 0), 16, 8, this.scene);
@@ -606,7 +604,7 @@ export class RoomEngine extends EventEmitter<RoomEngineEvents> {
}
public cameraMove(vector: { x: number; y: number; }, dash: boolean) {
(this.camera.inputs.attached.manual as FreeCameraManualInput).setMoveVector(dash ? { x: vector.x * 4, y: vector.y * 4 } : vector);
(this.camera.inputs.attached.manual as FreeCameraManualInput).setMoveVector(dash ? { x: vector.x * 3, y: vector.y * 3 } : vector);
}
public cameraRotate(vector: { x: number; y: number; }) {