UNPKG

react-native-filament

Version:

A real-time physically based 3D rendering engine for React Native

8 lines (6 loc) 297 B
import { useMemo } from 'react' import { BoxShape } from '../types/Shapes' import { BulletAPI } from '../bulletApi' export function useBoxShape(halfX: number, halfY: number, halfZ: number): BoxShape { return useMemo(() => BulletAPI.createBoxShape(halfX, halfY, halfZ), [halfX, halfY, halfZ]) }