UNPKG

@threlte/rapier

Version:

Components and hooks to use the Rapier physics engine in Threlte

17 lines (16 loc) 569 B
import { Collider, RigidBody, World } from '@dimforge/rapier3d-compat'; import { type Object3D } from 'three'; import type { AutoCollidersShapes } from '../types/types'; /** * * Creates collider descriptions including default translations * * @param object * @param world * @param friction * @param restitution * @param collidersType * @param rigidBody * @returns */ export declare const createCollidersFromChildren: (object: Object3D, collidersType: AutoCollidersShapes, world: World, rigidBody?: RigidBody, rigidBodyParentObject?: Object3D) => Collider[];