feat: new angle

This commit is contained in:
tresabhi committed 2024-12-16 22:40:36 -06:00
1 parent 4180736d37
commit db74058075
2 files changed
+7 -2

No files matched your search

@@ -88,7 +88,11 @@ export function Controls({ naked }: ControlsProps) {
protagonistHullOrigin.y +
protagonistTurretOrigin.y +
protagonistGunOrigin.y;
const inspectModeInitialPosition = [-8, gunHeight + 4, -13] as const;
const inspectModeInitialPosition = [
-8,
gunHeight + (naked ? 10 : 4),
-13,
] as const;
const protagonistGunOriginOnlyY = new Vector3(
0,
protagonistTurretModelDefinition.gun_origin.y,
@@ -1,6 +1,7 @@
import { Environment } from '@react-three/drei';
import { times } from 'lodash-es';
import { Euler } from 'three';
import { degToRad } from 'three/src/math/MathUtils.js';
import { useModel } from '../../../../../../hooks/useModel';
import { Duel } from '../../../../../../stores/duel';
import { TankopediaEphemeral } from '../../../../../../stores/tankopediaEphemeral';
@@ -20,7 +21,7 @@ export function Lighting() {
<Environment
files="https://dl.polyhaven.org/file/ph-assets/HDRIs/hdr/1k/winter_river_1k.hdr"
environmentIntensity={isBrighterLighting ? 2 : 1}
environmentRotation={new Euler(0, Math.PI, 0)}
environmentRotation={new Euler(0, degToRad(180), 0)}
/>
{display === TankopediaDisplay.ShootingRange && (
<>