UNPKG

@playcanvas/react

Version:

A React renderer for PlayCanvas – build interactive 3D applications using React's declarative paradigm.

16 lines (15 loc) 437 B
import React from 'react'; import { AppBase } from 'playcanvas'; interface PhysicsContextType { isPhysicsEnabled: boolean; isPhysicsLoaded: boolean; physicsError: Error | null; } export declare const usePhysics: () => PhysicsContextType; interface PhysicsProviderProps { children: React.ReactNode; enabled: boolean; app: AppBase; } export declare const PhysicsProvider: React.FC<PhysicsProviderProps>; export {};