forked from phenom/healer-man
Release Healer Man 0.1.26
This commit is contained in:
1 parent
e7cc588bfc
commit
147c2804d4
27 files changed
+1010
-55
No files matched your search
@@ -1,9 +1,9 @@
|
||||
import { Html } from "@react-three/drei";
|
||||
import { useFrame } from "@react-three/fiber";
|
||||
import { useRef, useState, type ReactNode } from "react";
|
||||
import { Group, Vector3 } from "three";
|
||||
import type { MobVector3 } from "../game/mobPopulation";
|
||||
import { useGameStore } from "../game/store";
|
||||
import { DungeonOccludedHtml } from "./DungeonOccludedHtml";
|
||||
|
||||
export const WORLD_NPC_PROMPT_MAX_DISTANCE = 22;
|
||||
|
||||
@@ -61,9 +61,9 @@ export function WorldNpcPrompt({
|
||||
return (
|
||||
<group ref={anchorRef} position={[position[0], position[1], position[2]]}>
|
||||
{visible ? (
|
||||
<Html center occlude="raycast" zIndexRange={[zIndexRange[0], zIndexRange[1]]}>
|
||||
<DungeonOccludedHtml center zIndexRange={[zIndexRange[0], zIndexRange[1]]}>
|
||||
{children}
|
||||
</Html>
|
||||
</DungeonOccludedHtml>
|
||||
) : null}
|
||||
</group>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user