@umituz/web-virtual 1.0.6 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/ASSET_CREDITS.md +45 -0
- package/assets/models/characters/character-female-a.glb +0 -0
- package/assets/models/characters/character-female-b.glb +0 -0
- package/assets/models/characters/character-male-a.glb +0 -0
- package/assets/models/characters/character-male-b.glb +0 -0
- package/assets/models/decor/lampRoundFloor.glb +0 -0
- package/assets/models/decor/plantSmall1.glb +0 -0
- package/assets/models/decor/pottedPlant.glb +0 -0
- package/assets/models/decor/trashcan.glb +0 -0
- package/assets/models/equipment/computerKeyboard.glb +0 -0
- package/assets/models/equipment/computerMouse.glb +0 -0
- package/assets/models/equipment/computerScreen.glb +0 -0
- package/assets/models/equipment/laptop.glb +0 -0
- package/assets/models/furniture/bookcaseOpen.glb +0 -0
- package/assets/models/furniture/chairDesk.glb +0 -0
- package/assets/models/furniture/desk.glb +0 -0
- package/assets/models/furniture/deskCorner.glb +0 -0
- package/assets/models/furniture/loungeChair.glb +0 -0
- package/assets/models/furniture/loungeSofa.glb +0 -0
- package/assets/models/furniture/table.glb +0 -0
- package/assets/models/furniture/tableCoffee.glb +0 -0
- package/package.json +2 -1
- package/src/engine/assetCatalog.test.ts +29 -0
- package/src/engine/assetCatalog.ts +222 -0
- package/src/engine/index.ts +2 -0
- package/src/engine/modelLoader.ts +126 -0
- package/src/entities/furniture/DeskBuilder.ts +196 -202
- package/src/entities/people/AvatarBuilder.ts +150 -208
- package/src/entities/props/PlantBuilder.ts +33 -36
- package/src/presets/officePreset.ts +37 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as THREE from 'three'
|
|
2
2
|
import type { MaterialPalette } from '../../engine/materials'
|
|
3
|
+
import { ModelLoader } from '../../engine/modelLoader'
|
|
3
4
|
|
|
4
5
|
export function createModernWorkstation(
|
|
5
6
|
materials: MaterialPalette,
|
|
@@ -15,13 +16,9 @@ export function createModernWorkstation(
|
|
|
15
16
|
group.userData = { entityId: options.entityId }
|
|
16
17
|
}
|
|
17
18
|
|
|
18
|
-
const
|
|
19
|
-
const legMat = materials.getMetalLegMaterial()
|
|
20
|
-
const bezelMat = materials.getMonitorBezelMaterial()
|
|
19
|
+
const shadowMat = materials.getContactShadowMaterial()
|
|
21
20
|
const screenMat1 = materials.getMonitorScreenMaterial('dashboard')
|
|
22
21
|
const screenMat2 = materials.getMonitorScreenMaterial('code')
|
|
23
|
-
const chairMat = materials.getLeatherMaterial('#334155')
|
|
24
|
-
const shadowMat = materials.getContactShadowMaterial()
|
|
25
22
|
|
|
26
23
|
// 0. Contact Ambient Occlusion Drop Shadows (grounds furniture on floor)
|
|
27
24
|
const deskShadow = new THREE.Mesh(new THREE.PlaneGeometry(1.9, 1.1), shadowMat)
|
|
@@ -34,159 +31,161 @@ export function createModernWorkstation(
|
|
|
34
31
|
chairShadow.position.set(0, 0.003, 0.48)
|
|
35
32
|
group.add(chairShadow)
|
|
36
33
|
|
|
37
|
-
// 1.
|
|
38
|
-
const
|
|
39
|
-
|
|
34
|
+
// 1. Container for 3D Real Models
|
|
35
|
+
const modelsContainer = new THREE.Group()
|
|
36
|
+
modelsContainer.name = `workstation-models-${options.entityId || 'generic'}`
|
|
37
|
+
group.add(modelsContainer)
|
|
38
|
+
|
|
39
|
+
// 2. Fallback geometry group (shown instantly while 3D models load)
|
|
40
|
+
const placeholderGroup = new THREE.Group()
|
|
41
|
+
placeholderGroup.name = 'workstation-placeholder'
|
|
42
|
+
|
|
43
|
+
const desktopMat = materials.getDeskTopMaterial(options.topColor || '#f8fafc')
|
|
44
|
+
const legMat = materials.getMetalLegMaterial()
|
|
45
|
+
const chairMat = materials.getLeatherMaterial('#334155')
|
|
46
|
+
|
|
47
|
+
const topMesh = new THREE.Mesh(new THREE.BoxGeometry(1.6, 0.04, 0.8), desktopMat)
|
|
40
48
|
topMesh.position.set(0, 0.74, 0)
|
|
41
49
|
topMesh.castShadow = true
|
|
42
50
|
topMesh.receiveShadow = true
|
|
43
51
|
if (options.entityId) topMesh.userData = { entityId: options.entityId }
|
|
44
|
-
|
|
52
|
+
placeholderGroup.add(topMesh)
|
|
45
53
|
|
|
46
|
-
|
|
47
|
-
const legGeo = new THREE.BoxGeometry(0.06, 0.72, 0.7)
|
|
48
|
-
const leftLeg = new THREE.Mesh(legGeo, legMat)
|
|
54
|
+
const leftLeg = new THREE.Mesh(new THREE.BoxGeometry(0.06, 0.72, 0.7), legMat)
|
|
49
55
|
leftLeg.position.set(-0.7, 0.36, 0)
|
|
50
56
|
leftLeg.castShadow = true
|
|
51
57
|
if (options.entityId) leftLeg.userData = { entityId: options.entityId }
|
|
52
|
-
|
|
58
|
+
placeholderGroup.add(leftLeg)
|
|
53
59
|
|
|
54
|
-
const rightLeg = new THREE.Mesh(
|
|
60
|
+
const rightLeg = new THREE.Mesh(new THREE.BoxGeometry(0.06, 0.72, 0.7), legMat)
|
|
55
61
|
rightLeg.position.set(0.7, 0.36, 0)
|
|
56
62
|
rightLeg.castShadow = true
|
|
57
63
|
if (options.entityId) rightLeg.userData = { entityId: options.entityId }
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
if (options.entityId)
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
const mouseGeo = new THREE.BoxGeometry(0.06, 0.015, 0.1)
|
|
180
|
-
const mouse = new THREE.Mesh(mouseGeo, bezelMat)
|
|
181
|
-
mouse.position.set(0.3, 0.765, 0.08)
|
|
182
|
-
if (options.entityId) mouse.userData = { entityId: options.entityId }
|
|
183
|
-
group.add(mouse)
|
|
184
|
-
|
|
185
|
-
// 8. Ceramic Coffee Mug
|
|
64
|
+
placeholderGroup.add(rightLeg)
|
|
65
|
+
|
|
66
|
+
const chairSeat = new THREE.Mesh(new THREE.BoxGeometry(0.48, 0.08, 0.46), chairMat)
|
|
67
|
+
chairSeat.position.set(0, 0.46, 0.48)
|
|
68
|
+
chairSeat.castShadow = true
|
|
69
|
+
if (options.entityId) chairSeat.userData = { entityId: options.entityId }
|
|
70
|
+
placeholderGroup.add(chairSeat)
|
|
71
|
+
|
|
72
|
+
group.add(placeholderGroup)
|
|
73
|
+
|
|
74
|
+
// 3. Asynchronously load and mount real 3D models from Asset Catalog
|
|
75
|
+
const loader = ModelLoader.getInstance()
|
|
76
|
+
void Promise.allSettled([
|
|
77
|
+
loader.load('furniture:desk'),
|
|
78
|
+
loader.load('furniture:chairDesk'),
|
|
79
|
+
loader.load('equipment:screen'),
|
|
80
|
+
options.dualMonitor ? loader.load('equipment:screen') : Promise.resolve(null),
|
|
81
|
+
loader.load('equipment:keyboard'),
|
|
82
|
+
loader.load('equipment:mouse'),
|
|
83
|
+
options.hasLaptop ? loader.load('equipment:laptop') : Promise.resolve(null),
|
|
84
|
+
]).then((results) => {
|
|
85
|
+
// If successfully loaded, replace placeholder with real models
|
|
86
|
+
const deskModel = results[0].status === 'fulfilled' ? results[0].value : null
|
|
87
|
+
const chairModel = results[1].status === 'fulfilled' ? results[1].value : null
|
|
88
|
+
const screenModel1 = results[2].status === 'fulfilled' ? results[2].value : null
|
|
89
|
+
const screenModel2 = results[3].status === 'fulfilled' ? results[3].value : null
|
|
90
|
+
const kbModel = results[4].status === 'fulfilled' ? results[4].value : null
|
|
91
|
+
const mouseModel = results[5].status === 'fulfilled' ? results[5].value : null
|
|
92
|
+
const laptopModel = results[6].status === 'fulfilled' ? results[6].value : null
|
|
93
|
+
|
|
94
|
+
if (deskModel) {
|
|
95
|
+
placeholderGroup.visible = false
|
|
96
|
+
|
|
97
|
+
// Real Desk
|
|
98
|
+
deskModel.scale.set(2.0, 1.95, 2.0)
|
|
99
|
+
deskModel.position.set(-0.7, 0, 0.38)
|
|
100
|
+
deskModel.traverse((node) => {
|
|
101
|
+
if (options.entityId) node.userData = { entityId: options.entityId }
|
|
102
|
+
})
|
|
103
|
+
modelsContainer.add(deskModel)
|
|
104
|
+
|
|
105
|
+
// Real Chair
|
|
106
|
+
if (chairModel) {
|
|
107
|
+
chairModel.scale.set(2.2, 2.2, 2.2)
|
|
108
|
+
chairModel.position.set(-0.35, 0, 0.65)
|
|
109
|
+
chairModel.rotation.y = Math.PI
|
|
110
|
+
chairModel.traverse((node) => {
|
|
111
|
+
if (options.entityId) node.userData = { entityId: options.entityId }
|
|
112
|
+
})
|
|
113
|
+
modelsContainer.add(chairModel)
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// Real Primary Screen
|
|
117
|
+
if (screenModel1) {
|
|
118
|
+
screenModel1.scale.set(1.5, 1.5, 1.5)
|
|
119
|
+
screenModel1.position.set(options.dualMonitor ? -0.28 : 0, 0.74, -0.2)
|
|
120
|
+
screenModel1.traverse((node) => {
|
|
121
|
+
if (options.entityId) node.userData = { entityId: options.entityId }
|
|
122
|
+
})
|
|
123
|
+
|
|
124
|
+
// Overlay glowing dashboard screen plane
|
|
125
|
+
const disp1 = new THREE.Mesh(new THREE.PlaneGeometry(0.58, 0.34), screenMat1)
|
|
126
|
+
disp1.position.set(options.dualMonitor ? -0.28 : 0, 0.98, -0.19)
|
|
127
|
+
if (options.entityId) disp1.userData = { entityId: options.entityId }
|
|
128
|
+
modelsContainer.add(disp1)
|
|
129
|
+
modelsContainer.add(screenModel1)
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// Real Secondary Screen (Dual Monitor Setup)
|
|
133
|
+
if (screenModel2) {
|
|
134
|
+
screenModel2.scale.set(1.5, 1.5, 1.5)
|
|
135
|
+
screenModel2.position.set(0.35, 0.74, -0.18)
|
|
136
|
+
screenModel2.rotation.y = -Math.PI / 7
|
|
137
|
+
screenModel2.traverse((node) => {
|
|
138
|
+
if (options.entityId) node.userData = { entityId: options.entityId }
|
|
139
|
+
})
|
|
140
|
+
|
|
141
|
+
// Overlay glowing code screen plane
|
|
142
|
+
const disp2 = new THREE.Mesh(new THREE.PlaneGeometry(0.58, 0.34), screenMat2)
|
|
143
|
+
disp2.position.set(0.35, 0.98, -0.17)
|
|
144
|
+
disp2.rotation.y = -Math.PI / 7
|
|
145
|
+
if (options.entityId) disp2.userData = { entityId: options.entityId }
|
|
146
|
+
modelsContainer.add(disp2)
|
|
147
|
+
modelsContainer.add(screenModel2)
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
// Real Keyboard
|
|
151
|
+
if (kbModel) {
|
|
152
|
+
kbModel.scale.set(1.5, 1.5, 1.5)
|
|
153
|
+
kbModel.position.set(0, 0.75, 0.08)
|
|
154
|
+
kbModel.traverse((node) => {
|
|
155
|
+
if (options.entityId) node.userData = { entityId: options.entityId }
|
|
156
|
+
})
|
|
157
|
+
modelsContainer.add(kbModel)
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// Real Mouse
|
|
161
|
+
if (mouseModel) {
|
|
162
|
+
mouseModel.scale.set(1.4, 1.4, 1.4)
|
|
163
|
+
mouseModel.position.set(0.28, 0.75, 0.08)
|
|
164
|
+
mouseModel.traverse((node) => {
|
|
165
|
+
if (options.entityId) node.userData = { entityId: options.entityId }
|
|
166
|
+
})
|
|
167
|
+
modelsContainer.add(mouseModel)
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
// Real Laptop
|
|
171
|
+
if (laptopModel) {
|
|
172
|
+
laptopModel.scale.set(0.9, 0.9, 0.9)
|
|
173
|
+
laptopModel.position.set(0.5, 0.75, -0.05)
|
|
174
|
+
laptopModel.rotation.y = -Math.PI / 6
|
|
175
|
+
laptopModel.traverse((node) => {
|
|
176
|
+
if (options.entityId) node.userData = { entityId: options.entityId }
|
|
177
|
+
})
|
|
178
|
+
modelsContainer.add(laptopModel)
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
})
|
|
182
|
+
|
|
183
|
+
// Ceramic Coffee Mug
|
|
186
184
|
const mugGeo = new THREE.CylinderGeometry(0.04, 0.035, 0.08, 12)
|
|
187
185
|
const mugMat = materials.getWallMaterial('#ffffff')
|
|
188
186
|
const mug = new THREE.Mesh(mugGeo, mugMat)
|
|
189
187
|
mug.position.set(-0.55, 0.8, -0.1)
|
|
188
|
+
if (options.entityId) mug.userData = { entityId: options.entityId }
|
|
190
189
|
group.add(mug)
|
|
191
190
|
|
|
192
191
|
return group
|
|
@@ -200,7 +199,6 @@ export function createExecutiveDesk(
|
|
|
200
199
|
if (options.entityId) group.userData = { entityId: options.entityId }
|
|
201
200
|
|
|
202
201
|
const woodMat = materials.getExecutiveWoodMaterial()
|
|
203
|
-
const chairMat = materials.getLeatherMaterial('#0f172a')
|
|
204
202
|
const bezelMat = materials.getMonitorBezelMaterial()
|
|
205
203
|
const screenMat = materials.getMonitorScreenMaterial('charts')
|
|
206
204
|
const shadowMat = materials.getContactShadowMaterial()
|
|
@@ -216,45 +214,46 @@ export function createExecutiveDesk(
|
|
|
216
214
|
chairShadow.position.set(0, 0.003, 0.65)
|
|
217
215
|
group.add(chairShadow)
|
|
218
216
|
|
|
219
|
-
//
|
|
220
|
-
const
|
|
221
|
-
|
|
217
|
+
// Real 3D Corner Desk
|
|
218
|
+
const modelsContainer = new THREE.Group()
|
|
219
|
+
modelsContainer.name = 'executive-models'
|
|
220
|
+
group.add(modelsContainer)
|
|
221
|
+
|
|
222
|
+
const placeholderGroup = new THREE.Group()
|
|
223
|
+
const mainTop = new THREE.Mesh(new THREE.BoxGeometry(2.2, 0.08, 0.9), woodMat)
|
|
222
224
|
mainTop.position.set(0, 0.74, 0)
|
|
223
225
|
mainTop.castShadow = true
|
|
224
226
|
if (options.entityId) mainTop.userData = { entityId: options.entityId }
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
const
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
chair.add(back)
|
|
256
|
-
|
|
257
|
-
group.add(chair)
|
|
227
|
+
placeholderGroup.add(mainTop)
|
|
228
|
+
group.add(placeholderGroup)
|
|
229
|
+
|
|
230
|
+
const loader = ModelLoader.getInstance()
|
|
231
|
+
void Promise.allSettled([
|
|
232
|
+
loader.load('furniture:deskCorner'),
|
|
233
|
+
loader.load('furniture:chairDesk'),
|
|
234
|
+
]).then(([deskRes, chairRes]) => {
|
|
235
|
+
if (deskRes.status === 'fulfilled') {
|
|
236
|
+
placeholderGroup.visible = false
|
|
237
|
+
const deskCorner = deskRes.value
|
|
238
|
+
deskCorner.scale.set(2.4, 2.0, 2.4)
|
|
239
|
+
deskCorner.position.set(-1.0, 0, 0.7)
|
|
240
|
+
deskCorner.traverse((node) => {
|
|
241
|
+
if (options.entityId) node.userData = { entityId: options.entityId }
|
|
242
|
+
})
|
|
243
|
+
modelsContainer.add(deskCorner)
|
|
244
|
+
|
|
245
|
+
if (chairRes.status === 'fulfilled') {
|
|
246
|
+
const execChair = chairRes.value
|
|
247
|
+
execChair.scale.set(2.5, 2.5, 2.5)
|
|
248
|
+
execChair.position.set(-0.35, 0, 0.8)
|
|
249
|
+
execChair.rotation.y = Math.PI
|
|
250
|
+
execChair.traverse((node) => {
|
|
251
|
+
if (options.entityId) node.userData = { entityId: options.entityId }
|
|
252
|
+
})
|
|
253
|
+
modelsContainer.add(execChair)
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
})
|
|
258
257
|
|
|
259
258
|
// Executive Curved Ultrawide Display
|
|
260
259
|
const screenGeo = new THREE.BoxGeometry(1.1, 0.45, 0.04)
|
|
@@ -287,30 +286,15 @@ export function createConferenceTable(materials: MaterialPalette): THREE.Group {
|
|
|
287
286
|
shadow.position.set(0, 0.003, 0)
|
|
288
287
|
group.add(shadow)
|
|
289
288
|
|
|
290
|
-
//
|
|
291
|
-
const
|
|
292
|
-
|
|
293
|
-
table.position.set(0, 0.74, 0)
|
|
294
|
-
table.castShadow = true
|
|
295
|
-
table.receiveShadow = true
|
|
296
|
-
group.add(table)
|
|
297
|
-
|
|
298
|
-
// Center cable tray
|
|
299
|
-
const trayGeo = new THREE.BoxGeometry(2.0, 0.01, 0.2)
|
|
300
|
-
const trayMat = materials.getFrameMaterial('#0f172a')
|
|
301
|
-
const tray = new THREE.Mesh(trayGeo, trayMat)
|
|
302
|
-
tray.position.set(0, 0.785, 0)
|
|
303
|
-
group.add(tray)
|
|
289
|
+
// Real 3D Conference Table
|
|
290
|
+
const modelsContainer = new THREE.Group()
|
|
291
|
+
group.add(modelsContainer)
|
|
304
292
|
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
group.add(
|
|
310
|
-
|
|
311
|
-
const p2 = new THREE.Mesh(pillarGeo, legMat)
|
|
312
|
-
p2.position.set(1.4, 0.35, 0)
|
|
313
|
-
group.add(p2)
|
|
293
|
+
const placeholder = new THREE.Mesh(new THREE.BoxGeometry(4.5, 0.08, 1.6), woodMat)
|
|
294
|
+
placeholder.position.set(0, 0.74, 0)
|
|
295
|
+
placeholder.castShadow = true
|
|
296
|
+
placeholder.receiveShadow = true
|
|
297
|
+
group.add(placeholder)
|
|
314
298
|
|
|
315
299
|
// Surround chairs
|
|
316
300
|
const addChair = (x: number, z: number, rotY: number) => {
|
|
@@ -344,5 +328,15 @@ export function createConferenceTable(materials: MaterialPalette): THREE.Group {
|
|
|
344
328
|
addChair(-2.55, 0, Math.PI / 2)
|
|
345
329
|
addChair(2.55, 0, -Math.PI / 2)
|
|
346
330
|
|
|
331
|
+
// Heavy pillars
|
|
332
|
+
const pillarGeo = new THREE.CylinderGeometry(0.2, 0.2, 0.7, 16)
|
|
333
|
+
const p1 = new THREE.Mesh(pillarGeo, legMat)
|
|
334
|
+
p1.position.set(-1.4, 0.35, 0)
|
|
335
|
+
group.add(p1)
|
|
336
|
+
|
|
337
|
+
const p2 = new THREE.Mesh(pillarGeo, legMat)
|
|
338
|
+
p2.position.set(1.4, 0.35, 0)
|
|
339
|
+
group.add(p2)
|
|
340
|
+
|
|
347
341
|
return group
|
|
348
342
|
}
|