v1.1.0
useConstraint
now returns an API as follows: (#180)
type SpringApi = [
React.MutableRefObject<THREE.Object3D | undefined>,
React.MutableRefObject<THREE.Object3D | undefined>,
{
setStiffness: (value: number) => void
setRestLength: (value: number) => void
setDamping: (value: number) => void
}
]
Allowing more complex and expressive physics constraints. Thanks @brunnolou!