mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
some missing aliases
This commit is contained in:
1 parent
953570461c
commit
5059e382b3
4 files changed
+10
-5
No files matched your search
@@ -1,9 +1,10 @@
|
||||
import { alias } 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 = `/api/tanks/${id}/collision.glb`;
|
||||
const path = alias("api", `/tanks/${id}/collision.glb`);
|
||||
const gltf = useLoader(GLTFLoader, path);
|
||||
|
||||
useDispose(gltf, path);
|
||||
|
||||
Reference in new issue
Block a user