Spaces:
Running
Running
Julien Chaumond
commited on
Commit
•
000f140
1
Parent(s):
9d520b3
x-positioning of models
Browse files- src/index.ts +4 -3
src/index.ts
CHANGED
@@ -145,6 +145,7 @@ class TUtils {
|
|
145 |
c.log(egg);
|
146 |
egg.scale.setScalar(.2);
|
147 |
egg.rotateX(-Math.PI / 2);
|
|
|
148 |
TUtils.flushYZero(egg);
|
149 |
const box = new THREE.BoxHelper(egg);
|
150 |
scene.add(box);
|
@@ -158,7 +159,7 @@ class TUtils {
|
|
158 |
const egg = await Assets.loadEggGltf();
|
159 |
c.log(egg);
|
160 |
egg.scale.setScalar(100);
|
161 |
-
egg.position.x = -
|
162 |
TUtils.flushYZero(egg);
|
163 |
egg.remove(egg.getObjectByName('Camera')!);
|
164 |
scene.add(egg);
|
@@ -179,7 +180,7 @@ class TUtils {
|
|
179 |
const container = new THREE.Group();
|
180 |
container.add(dog);
|
181 |
container.scale.setScalar(0.007); /// <- scale a container, not the dog itself or it'll fuck the anims.
|
182 |
-
container.position.x =
|
183 |
scene.add(container);
|
184 |
const box = new THREE.BoxHelper(container, new THREE.Color('green'));
|
185 |
scene.add(box);
|
@@ -187,7 +188,7 @@ class TUtils {
|
|
187 |
{
|
188 |
const boloss = (await Assets.loadBoloss()).scene;
|
189 |
c.log(boloss);
|
190 |
-
boloss.position.x =
|
191 |
TUtils.flushYZero(boloss);
|
192 |
scene.add(boloss);
|
193 |
const box = new THREE.BoxHelper(boloss, new THREE.Color('blue'));
|
|
|
145 |
c.log(egg);
|
146 |
egg.scale.setScalar(.2);
|
147 |
egg.rotateX(-Math.PI / 2);
|
148 |
+
egg.position.x = -18;
|
149 |
TUtils.flushYZero(egg);
|
150 |
const box = new THREE.BoxHelper(egg);
|
151 |
scene.add(box);
|
|
|
159 |
const egg = await Assets.loadEggGltf();
|
160 |
c.log(egg);
|
161 |
egg.scale.setScalar(100);
|
162 |
+
egg.position.x = -28;
|
163 |
TUtils.flushYZero(egg);
|
164 |
egg.remove(egg.getObjectByName('Camera')!);
|
165 |
scene.add(egg);
|
|
|
180 |
const container = new THREE.Group();
|
181 |
container.add(dog);
|
182 |
container.scale.setScalar(0.007); /// <- scale a container, not the dog itself or it'll fuck the anims.
|
183 |
+
container.position.x = -6;
|
184 |
scene.add(container);
|
185 |
const box = new THREE.BoxHelper(container, new THREE.Color('green'));
|
186 |
scene.add(box);
|
|
|
188 |
{
|
189 |
const boloss = (await Assets.loadBoloss()).scene;
|
190 |
c.log(boloss);
|
191 |
+
boloss.position.x = 16;
|
192 |
TUtils.flushYZero(boloss);
|
193 |
scene.add(boloss);
|
194 |
const box = new THREE.BoxHelper(boloss, new THREE.Color('blue'));
|