UNPKG

@threlte/rapier

Version:

Components and hooks to use the Rapier physics engine in Threlte

5 lines (4 loc) 127 B
import { getContext } from 'svelte'; export const useRigidBody = () => { return getContext('threlte-rapier-rigidbody'); };