mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-03-13 17:30:56 +00:00
format with Prettier
This commit is contained in:
parent
c5c43d92d9
commit
c8391a1056
37 changed files with 1013 additions and 91 deletions
|
|
@ -4,7 +4,7 @@ import { Object3D } from "three";
|
|||
import { useWorldPosition } from "./useWorldPosition";
|
||||
|
||||
export function useDistanceFromCamera<T extends Object3D>(
|
||||
ref: RefObject<T>
|
||||
ref: RefObject<T>,
|
||||
): RefObject<number> {
|
||||
const { camera } = useThree();
|
||||
const distanceRef = useRef<number>(null);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue