pmndrs/use-cannon

👋💣 physics based hooks for @react-three/fiber

Hosted by Poimandres

View on GitHub ↗Jump to charts ↓

pmndrs/use-cannon has 2.5k+ stars and 150+ forks on GitHub, is written in TypeScript, and was last pushed on Feb 25, 2024. Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 43 minutes ago
Added to GitGenius on October 12th, 2026
Created on March 3rd, 2020
Open Issues & Pull Requests: 32 (+0)
GitHub issues: Enabled
Number of forks: 168
Total Stargazers: 2,970 (+0)
Total Subscribers: 32 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 76.2 days
Mean response time: 204.4 days
90th percentile: 467.5 days
Tracked items: 3

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 1
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 1,445 days
Stale 30+ days: 1
Stale 90+ days: 1

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

Sign in to see which issues are moving.
Sign in

Detailed Description

use-cannon is a physics library that provides React hooks for integrating Cannon.js physics simulation into React Three Fiber applications.

The library solves the problem of adding realistic physics interactions to 3D web scenes built with React Three Fiber. Rather than manually managing Cannon.js physics bodies and constraints, use-cannon wraps the physics engine in React hooks that integrate seamlessly with the declarative component model. This approach lets developers describe physical objects and their interactions using familiar React patterns, with the physics simulation running in the background and updating 3D geometries accordingly.

Developers building interactive 3D web applications with React Three Fiber should consider use-cannon when their scenes require gravity, collisions, rigid body dynamics, or other physics-based behavior. It suits projects ranging from games and simulations to interactive product visualizations where physical realism enhances user experience. The hook-based API makes it natural to attach physics properties to React components without breaking the component hierarchy or requiring external state management.

The project maintains steady development activity with regular updates addressing bug fixes and compatibility improvements. Pull requests receive consistent review and integration. The codebase shows active maintenance through ongoing refinement of the physics integration layer and the React hooks API.