File tree Expand file tree Collapse file tree 7 files changed +24
-0
lines changed
r3f-socketio-sims-multiplayer/client Expand file tree Collapse file tree 7 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 11Animated Woman by Quaternius (https://poly.pizza/m/qJ2gsTUBHL )
2+
3+ Shelf Tall by Quaternius (https://poly.pizza/m/TDgvIuorcX )
4+
5+ Table by Quaternius (https://poly.pizza/m/gQFkiM8PlM )
6+
7+ Chair by Quaternius (https://poly.pizza/m/iMNqRzPwwe )
8+
9+ Couch Small by Quaternius (https://poly.pizza/m/ZOPP3KzNIk )
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import { useAtom } from 'jotai';
99import { charactersAtom , socket } from './SocketManager' ;
1010import { AnimatedWoman } from './AnimatedWoman' ;
1111import { useState } from 'react' ;
12+ import Item from './Item' ;
1213
1314const Experience = ( ) => {
1415 const [ characters ] = useAtom ( charactersAtom ) ;
@@ -38,6 +39,13 @@ const Experience = () => {
3839 < meshStandardMaterial color = "#f0f0f0" />
3940 </ mesh >
4041
42+ { /* ITEMS */ }
43+ < Item name = { 'Chair' } />
44+ < Item name = { 'Couch Small' } />
45+ < Item name = { 'Shelf Tall' } />
46+ < Item name = { 'Table' } />
47+
48+ { /* CHARACTERS */ }
4149 { characters . map ( ( character ) => {
4250 return (
4351 < AnimatedWoman
Original file line number Diff line number Diff line change 1+ import { useGLTF } from '@react-three/drei' ;
2+
3+ const Item = ( { name } ) => {
4+ const { scene } = useGLTF ( `models/items/${ name } .glb` ) ;
5+ return < primitive object = { scene } /> ;
6+ } ;
7+
8+ export default Item ;
You can’t perform that action at this time.
0 commit comments