UNPKG

@threlte/rapier

Version:

Components and hooks to use the Rapier physics engine in Threlte

16 lines (15 loc) 670 B
import { type CurrentWritable, type Key, type Stage } from '@threlte/core'; import type { Framerate } from '../types/types'; export declare const createPhysicsStages: (framerate: CurrentWritable<Framerate>, simulationOffset: CurrentWritable<number>, updateRigidBodySimulationData: CurrentWritable<boolean>, options?: { simulationStageOptions?: { before?: (Key | Stage) | (Key | Stage)[]; after?: (Key | Stage) | (Key | Stage)[]; }; synchronizationStageOptions?: { before?: (Key | Stage) | (Key | Stage)[]; after?: (Key | Stage) | (Key | Stage)[]; }; }) => { simulationStage: Stage; synchronizationStage: Stage; };