mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-25 19:49:50 +01:00
feat: new angle
This commit is contained in:
1 parent
4180736d37
commit
db74058075
2 files changed
+7
-2
No files matched your search
+5
-1
@@ -88,7 +88,11 @@ export function Controls({ naked }: ControlsProps) {
|
|||||||
protagonistHullOrigin.y +
|
protagonistHullOrigin.y +
|
||||||
protagonistTurretOrigin.y +
|
protagonistTurretOrigin.y +
|
||||||
protagonistGunOrigin.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(
|
const protagonistGunOriginOnlyY = new Vector3(
|
||||||
0,
|
0,
|
||||||
protagonistTurretModelDefinition.gun_origin.y,
|
protagonistTurretModelDefinition.gun_origin.y,
|
||||||
|
|||||||
+2
-1
@@ -1,6 +1,7 @@
|
|||||||
import { Environment } from '@react-three/drei';
|
import { Environment } from '@react-three/drei';
|
||||||
import { times } from 'lodash-es';
|
import { times } from 'lodash-es';
|
||||||
import { Euler } from 'three';
|
import { Euler } from 'three';
|
||||||
|
import { degToRad } from 'three/src/math/MathUtils.js';
|
||||||
import { useModel } from '../../../../../../hooks/useModel';
|
import { useModel } from '../../../../../../hooks/useModel';
|
||||||
import { Duel } from '../../../../../../stores/duel';
|
import { Duel } from '../../../../../../stores/duel';
|
||||||
import { TankopediaEphemeral } from '../../../../../../stores/tankopediaEphemeral';
|
import { TankopediaEphemeral } from '../../../../../../stores/tankopediaEphemeral';
|
||||||
@@ -20,7 +21,7 @@ export function Lighting() {
|
|||||||
<Environment
|
<Environment
|
||||||
files="https://dl.polyhaven.org/file/ph-assets/HDRIs/hdr/1k/winter_river_1k.hdr"
|
files="https://dl.polyhaven.org/file/ph-assets/HDRIs/hdr/1k/winter_river_1k.hdr"
|
||||||
environmentIntensity={isBrighterLighting ? 2 : 1}
|
environmentIntensity={isBrighterLighting ? 2 : 1}
|
||||||
environmentRotation={new Euler(0, Math.PI, 0)}
|
environmentRotation={new Euler(0, degToRad(180), 0)}
|
||||||
/>
|
/>
|
||||||
{display === TankopediaDisplay.ShootingRange && (
|
{display === TankopediaDisplay.ShootingRange && (
|
||||||
<>
|
<>
|
||||||
|
|||||||
Reference in new issue
Block a user