From db74058075e74ceb7dbe7ad9feeb6b7b7180599c Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Mon, 16 Dec 2024 22:40:36 -0600 Subject: [PATCH] feat: new angle --- .../components/TankSandbox/components/Control.tsx | 6 +++++- .../components/TankSandbox/components/Lighting.tsx | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/website/src/components/Tankopedia/HeroSection/components/TankSandbox/components/Control.tsx b/packages/website/src/components/Tankopedia/HeroSection/components/TankSandbox/components/Control.tsx index 4b87c69b5..675fda8f6 100644 --- a/packages/website/src/components/Tankopedia/HeroSection/components/TankSandbox/components/Control.tsx +++ b/packages/website/src/components/Tankopedia/HeroSection/components/TankSandbox/components/Control.tsx @@ -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, diff --git a/packages/website/src/components/Tankopedia/HeroSection/components/TankSandbox/components/Lighting.tsx b/packages/website/src/components/Tankopedia/HeroSection/components/TankSandbox/components/Lighting.tsx index 60632446b..1ef07c9e4 100644 --- a/packages/website/src/components/Tankopedia/HeroSection/components/TankSandbox/components/Lighting.tsx +++ b/packages/website/src/components/Tankopedia/HeroSection/components/TankSandbox/components/Lighting.tsx @@ -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() { {display === TankopediaDisplay.ShootingRange && ( <>