UNPKG

react-native-filament

Version:

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

7 lines (5 loc) 217 B
import { useMemo } from 'react' import { BulletAPI } from '../bulletApi' export function useWorld(x: number, y: number, z: number) { return useMemo(() => BulletAPI.createDiscreteDynamicWorld(x, y, z), [x, y, z]) }