Skip to content

Commit 9f0befa

Browse files
committed
fixes
1 parent 2f6f990 commit 9f0befa

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

spring/src/App.js

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -3,42 +3,11 @@ import { Canvas } from '@react-three/fiber';
33
import { Sky } from '@react-three/drei';
44
import { Physics } from '@react-three/cannon';
55

6-
76
import { Ground } from './components/Ground';
87
import Cubes from './components/Cubes';
98
import { Player } from './components/Player';
109
import { Hud } from './components/Hud';
1110

12-
function Box() {
13-
const [ref, api] = useBox(() => ({ mass: 1, position: [0, 2, 0] }));
14-
return (
15-
16-
<mesh
17-
onClick={() => {
18-
api.velocity.set(0, 2, 0);
19-
}}
20-
ref={ref}
21-
position={[0, 2, 0]}
22-
>
23-
<boxBufferGeometry attach="geometry" />
24-
<meshLambertMaterial attach="material" color="hotpink" />
25-
</mesh>
26-
);
27-
}
28-
29-
function Plane() {
30-
const [ref] = usePlane(() => ({
31-
rotation: [-Math.PI / 2, 0, 0],
32-
}));
33-
return (
34-
<mesh ref={ref} rotation={[-Math.PI / 2, 0, 0]}>
35-
<planeBufferGeometry attach="geometry" args={[100, 100]} />
36-
<meshLambertMaterial attach="material" color="lightblue" />
37-
</mesh>
38-
);
39-
}
40-
41-
4211
function App() {
4312
return (
4413
<div style={{height:"100%",width:"100%",position:"absolute"}}>

0 commit comments

Comments
 (0)