react-native-filament
Version:
A real-time physically based 3D rendering engine for React Native
8 lines (6 loc) • 385 B
text/typescript
import { useMemo } from 'react'
import { StaticPlaneShape } from '../types/Shapes'
import { BulletAPI } from '../bulletApi'
export function useStaticPlaneShape(normalX: number, normalY: number, normalZ: number, constant: number): StaticPlaneShape {
return useMemo(() => BulletAPI.createStaticPlaneShape(normalX, normalY, normalZ, constant), [normalX, normalY, normalZ, constant])
}