👋💣 physics based hooks for @react-three/fiber
usePhysicsContext
hook, which immediately gives you a clear error message when trying to access physics components or hooks outside of a Physics provider (@bjornstar)context
to physicsContext
(@bjornstar)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)usePhysicsContext
hook, which immediately gives you a clear error message when trying to access physics components or hooks outside of a Physics provider (@bjornstar)context
to physicsContext
(@bjornstar)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.json
] Added homepage property to go directly to the package (@bjornstar)rollup.config.js
] Specify targetPlatform: 'browser' (@bjornstar)tsconfig.json
] Alphabetize contents (@bjornstar)