Skip to content

Commit

Permalink
Fix simple-physics-demo-with-debug-bounds demo (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
rndexe authored Aug 3, 2024
1 parent 987db8d commit d3301c9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 91 deletions.
2 changes: 1 addition & 1 deletion demos/simple-physics-demo-with-debug-bounds/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"homepage": "https://codesandbox.io/s/0k27n",
"keywords": [],
"dependencies": {
"@react-three/cannon": "^5.0.0",
"@react-three/cannon": "^6.6.0",
"@react-three/fiber": "^8.16.8",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion demos/simple-physics-demo-with-debug-bounds/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default function () {
<Canvas dpr={[1, 2]} shadows gl={{ alpha: false }} camera={{ position: [-2, 1, 7], fov: 50 }}>
<color attach="background" args={['#f6d186']} />
<hemisphereLight intensity={1} />
<spotLight position={[5, 5, 5]} angle={0.75} penumbra={1} intensity={1} castShadow shadow-mapSize-width={1028} shadow-mapSize-height={1028} />
<spotLight position={[5, 5, 5]} angle={0.75} decay={0} penumbra={1} intensity={Math.PI} castShadow shadow-mapSize-width={1028} shadow-mapSize-height={1028} />
<Physics iterations={6}>
<Debug scale={1.1} color="black">
<Plane rotation={[-Math.PI / 2, 0, 0]} />
Expand Down
5 changes: 2 additions & 3 deletions demos/simple-physics-demo-with-debug-bounds/src/index.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import ReactDOM from 'react-dom'
import React from 'react'
import { createRoot } from 'react-dom/client'
import './styles.css'
import App from './App'

ReactDOM.render(<App />, document.getElementById('root'))
createRoot(document.getElementById('root')).render(<App />)
87 changes: 1 addition & 86 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d3301c9

Please sign in to comment.