mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-19 03:43:17 +01:00
feat: core armor
This commit is contained in:
1 parent
fabf649608
commit
2689568650
14 files changed
+430
-24
No files matched your search
@@ -4,6 +4,7 @@ import { PerspectiveCamera } from '@react-three/drei';
|
||||
import { Canvas } from '@react-three/fiber';
|
||||
import { Suspense, use, useEffect, useRef, useState } from 'react';
|
||||
import { isMobile } from 'react-device-detect';
|
||||
import { Armor } from '../../../../../../components/Armor';
|
||||
import { applyPitchYawLimits } from '../../../../../../core/blitz/applyPitchYawLimits';
|
||||
import { modelDefinitions } from '../../../../../../core/blitzkrieg/modelDefinitions';
|
||||
import { modelTransformEvent } from '../../../../../../core/blitzkrieg/modelTransform';
|
||||
@@ -18,10 +19,12 @@ import mutateTankopediaPersistent, {
|
||||
} from '../../../../../../stores/tankopedia';
|
||||
import { AntagonistBar } from '../AntagonistBar';
|
||||
import { Controls } from '../Control';
|
||||
import { Lighting } from '../Lighting';
|
||||
import { RotationInputs } from '../QuickInputs';
|
||||
import { SceneProps } from '../SceneProps';
|
||||
import { ModelLoader } from './components/ModelLoader';
|
||||
import { Options } from './components/Options';
|
||||
import { SpacedArmorScene } from './components/TankArmor/components/Spaced';
|
||||
import { TankModel } from './components/TankModel';
|
||||
|
||||
export function TankSandbox() {
|
||||
const canvas = useRef<HTMLCanvasElement>(null);
|
||||
@@ -189,13 +192,16 @@ export function TankSandbox() {
|
||||
>
|
||||
<PerspectiveCamera makeDefault fov={25} far={32} />
|
||||
<Controls />
|
||||
{/* <SceneProps /> */}
|
||||
<SceneProps />
|
||||
|
||||
<Suspense fallback={<ModelLoader />}>
|
||||
{/* <ShotDisplay />
|
||||
|
||||
*/}
|
||||
{/* <SpacedArmorScene /> */}
|
||||
<Lighting />
|
||||
<TankModel /> */}
|
||||
<SpacedArmorScene />
|
||||
<TankModel />
|
||||
<Armor />
|
||||
</Suspense>
|
||||
</Canvas>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user