Skip to content

v1.1.0

Compare
Choose a tag to compare
@stockhuman stockhuman released this 15 Apr 01:12
· 242 commits to master since this release

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!