Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
abernier committed Aug 12, 2024
1 parent 2cbe607 commit 9841cfa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion demos/arkanoid/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function Paddle() {
}

function Ball() {
const [ref, api] = useSphere(() => ({ mass: 1, args: 0.4, position: [0, 3, 0], velocity: [0, 5, 0] }))
const [ref, api] = useSphere(() => ({ mass: 1, args: [0.4], position: [0, 3, 0], velocity: [0, 5, 0] }))
const restart = useStore((state) => state.restart)
useEffect(() => {
if (restart) {
Expand Down
2 changes: 1 addition & 1 deletion demos/pinball-in-70-lines/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import bgImg from "./bg.jpg"

function BallAndCollisions({ args = [1.2, 32, 32], v = new THREE.Vector3() }) {
const cam = useRef()
const [ref, api] = useSphere(() => ({ args: 1.2, mass: 1, material: { restitution: 0.95 } }))
const [ref, api] = useSphere(() => ({ args: [1.2], mass: 1, material: { restitution: 0.95 } }))
usePlane(() => ({ position: [0, -15, 0], rotation: [-Math.PI / 2, 0, 0], onCollide: () => (api.position.set(0, 0, 0), api.velocity.set(0, 0, 0)) }))
usePlane(() => ({ position: [-15, 0, 0], rotation: [-Math.PI / 2, Math.PI / 2, 0] }))
usePlane(() => ({ position: [15, 0, 0], rotation: [Math.PI / 2, -Math.PI / 2, 0] }))
Expand Down
2 changes: 1 addition & 1 deletion demos/trigger-meshes/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function Ball() {
const [ref] = useSphere(() => ({
mass: 1,
position: [0, 20, 0],
args: 1
args: [1]
}))
return (
<mesh castShadow receiveShadow ref={ref}>
Expand Down

0 comments on commit 9841cfa

Please sign in to comment.