use-cannon

πŸ‘‹πŸ’£ physics based hooks for @react-three/fiber

Downloads
64.4K
Stars
2.7K
Committers
46

Bot releases are hidden (Show)

use-cannon - @pmndrs/cannon-worker-api - v2.3.2 - 2023-01-05

Published by bjornstar almost 2 years ago

  • [README.md] Improve links to related packages (@bjornstar)
use-cannon - @pmndrs/use-cannon - v2.5.2 - 2023-01-05

Published by bjornstar almost 2 years ago

  • [@pmndrs/cannon-worker-api] v2.3.2
  • [@react-three/cannon] v6.5.2
  • [@react-three/cannon-examples] v2.4.1
  • [README.md] Update shields badge to match their new routes (@bjornstar)
use-cannon - @react-three/cannon - v6.5.2 - 2023-01-05

Published by bjornstar almost 2 years ago

  • [README.md] Update shields badge to point to match their new route (@bjornstar)
use-cannon - @react-three/cannon-examples - v2.4.1 - 2023-01-05

Published by bjornstar almost 2 years ago

  • Update @react-three/cannon to v6.5.2 (@bjornstar)
use-cannon - @pmndrs/use-cannon - v2.5.0 - 2022-11-03

Published by bjornstar almost 2 years ago

  • [@pmndrs/cannon-worker-api] v2.3.0
  • [@react-three/cannon] v6.5.0
  • [@react-three/cannon-examples] v2.4.0
  • Setup changesets & publish workflow (@isaac-mason)
  • Do not attempt to publish on forks (@bjornstar)
use-cannon - @pmndrs/cannon-worker-api - v2.3.0 - 2022-11-03

Published by bjornstar almost 2 years ago

  • Remove subscriptions when removing bodies and vehicles (@alex-shortt)
use-cannon - @react-three/cannon - v6.5.0 - 2022-11-03

Published by bjornstar almost 2 years ago

  • Update @pmndrs/cannon-worker-api to v2.3.0 (@bjornstar)
use-cannon - @react-three/cannon-examples - v2.4.0 - 2022-11-03

Published by bjornstar almost 2 years ago

  • Remove some types & an expect-error that are no longer necessary (@bjornstar)
  • Inline the only niceColors that we use (@bjornstar)
  • Update @react-three/cannon to v6.5.0 (@bjornstar)
  • Update three-stdlib to v2.17.3 (@bjornstar)
  • Update vite to v3.2.2 (@bjornstar)
  • Replace vite-react-jsx with @vitejs/plugin-react (@bjornstar)
  • Remove nice-color-palettes (@bjornstar)
  • Remove @vitejs/plugin-react-refresh (@bjornstar)
use-cannon - @pmndrs/use-cannon - v2.3.0 - 2022-04-18

Published by bjornstar over 2 years ago

  • [@react-three/cannon] v6.3.0
  • [@react-three/cannon-examples] v2.3.0
use-cannon - @react-three/cannon - v6.3.0 - 2022-04-18

Published by bjornstar over 2 years ago

  • DebugProvider explicitly lists children as a prop (@bjornstar)
  • Prefer PropsWithChildren over FC (@bjornstar)
  • Prefer function declarations over const (@bjornstar)
  • [hooks] All hooks are now generic, they accept any Object3D and return refs of whatever type was passed in (@bjornstar)
  • Update @types/react to v18 (@bjornstar)
use-cannon - @react-three/cannon-examples - v2.3.0 - 2022-04-18

Published by bjornstar over 2 years ago

  • Use accurate ref types for all hooks (@bjornstar)
  • Prefer PropsWithChildren to FC (@bjornstar)
  • Update @types/react to v18 (@bjornstar)
  • Update @react-three/drei & @react-three/fiber (@bjornstar)
  • Update styled-components (@bjornstar)
use-cannon - @react-three/cannon v6.2.0 - 2022-04-08

Published by bjornstar over 2 years ago

  • Add scaleOverride (@bjornstar)
use-cannon - @react-three/cannon-examples v2.2.0 - 2022-04-08

Published by bjornstar over 2 years ago

  • Use react-dom/client for react 18 features
  • Update @react-three/cannon to v6.2.0
use-cannon - @pmndrs/use-cannon v2.2.0 - 2022-04-08

Published by bjornstar over 2 years ago

  • [@react-three/cannon] v6.2.0
  • [@react-three/cannon-examples] v2.2.0
use-cannon - @react-three/cannon-examples v2.0.0 - 2022-04-01

Published by bjornstar over 2 years ago

  • Updated react to v18
  • Updated three.js to r139
  • Updated @react-three/cannon to v6
use-cannon - @react-three/cannon-examples v2.1.0 - 2022-04-02

Published by bjornstar over 2 years ago

  • Update @react-three/cannon to v6.1.0
use-cannon - @pmndrs/use-cannon v2.0.0 - 2022-04-01

Published by bjornstar over 2 years ago

  • [@pmndrs/cannon-worker-api] v2.0.0
  • [@react-three/cannon] v6.0.0
  • [@react-three/cannon-examples] v2.0.0
use-cannon - @react-three/cannon v6.1.0 - 2022-04-02

Published by bjornstar over 2 years ago

  • Now calls connect before init in a useEffect (instead of useLayoutEffect)
  • Update @pmndrs/cannon-worker-api to v2.1.0
use-cannon - @react-three/cannon v6.0.0 - 2022-04-01

Published by bjornstar over 2 years ago

  • Removed the Suspense wrapper around Physics, you will need to provide your own suspense boundary from now on
  • react is now a peerDependency and requires v18 or higher
  • three.js is now a peerDependency and requires r139 or higher
  • @react-three/fiber is now a peerDependency and requires v8 or higher
  • @pmndrs/cannon-worker-api is now a dependency
  • cannon-es is now a dependency
  • cannon-es-debugger is now a dependency
  • Updated many devDependencies
use-cannon - @react-three/cannon v5.1.0 - 2022-03-19

Published by bjornstar over 2 years ago

  • Access the physics context with the usePhysicsContext hook, which immediately gives you a clear error message when trying to access physics components or hooks outside of a Physics provider (@bjornstar)
  • Renamed context to physicsContext (@bjornstar)
  • Added a useDebugContext hook for consistency (@bjornstar)
  • [Provider.tsx] Renamed to physics-provider.tsx (@bjornstar)
  • [Debug.tsx] Renamed to debug-provider.tsx (Still exported as Debug & DebugProps) (@bjornstar)
  • [physics-provider.tsx] One useState call that contains the whole context (@bjornstar)
  • [physics-provider.tsx] bodies is not a ref, no need to access current (@bjornstar)
  • [setup.ts] Removed, split into more appropriately named modules (@bjornstar)
  • [worker.d.ts] Removed, belongs in cannon-worker-api (@bjornstar)
  • [package.json] Use dependencies rather than peerDependencies (@bjornstar)
  • [.eslintrc.json] Clean up (@bjornstar)
  • [.eslintrc.json] Disallow non-null assertions (@bjornstar)
Package Rankings
Top 1.43% on Npmjs.org
Top 6.74% on Proxy.golang.org
Badges
Extracted from project README
Build Status Discord Shield