tank model and collision

This commit is contained in:
tresabhi committed 2026-08-04 20:18:05 -05:00
1 parent 9968b2c83d
commit 9e4d9c7968
19 files changed
+278 -206

No files matched your search

+1 -2
View File
@@ -1,10 +1,9 @@
import { asset } from "@blitzkit/core";
import { useLoader } from "@react-three/fiber";
import { GLTFLoader } from "three-stdlib";
import { useDispose } from "./useDispose";
export function useArmor(id: number) {
const path = asset(`3d/tanks/armor/${id}.glb`);
const path = `/api/tanks/${id}/collision.glb`;
const gltf = useLoader(GLTFLoader, path);
useDispose(gltf, path);