поменял связи урны
This commit is contained in:
parent
8b3c61cc4a
commit
63d6715353
|
@ -5,7 +5,7 @@ const { openModal } = useModalState();
|
||||||
|
|
||||||
const types = {
|
const types = {
|
||||||
bench: defineAsyncComponent(() => import("./bench.vue")),
|
bench: defineAsyncComponent(() => import("./bench.vue")),
|
||||||
table: defineAsyncComponent(() => import("./bench-table.vue")),
|
table: defineAsyncComponent(() => import("./urna2.vue")),
|
||||||
};
|
};
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
|
@ -82,7 +82,7 @@ const changeDistance = (v = 1) => {
|
||||||
</div>
|
</div>
|
||||||
</ClientOnly>
|
</ClientOnly>
|
||||||
<div class="absolute bottom-4 left-1/2 -translate-x-1/2">
|
<div class="absolute bottom-4 left-1/2 -translate-x-1/2">
|
||||||
<button @click.prevent="openModal">Рассчитать</button>
|
<button @click.prevent="openModal">Заказать</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -6,12 +6,12 @@ import { degToRad } from 'three/src/math/MathUtils.js'
|
||||||
|
|
||||||
const { camera, controls } = useTresContext()
|
const { camera, controls } = useTresContext()
|
||||||
|
|
||||||
const { scene } = await useGLTF('/models/bench.glb')
|
const { scene } = await useGLTF('/models/urna1.glb')
|
||||||
const object = calculateScaleToFit(
|
const object = calculateScaleToFit(
|
||||||
scene,
|
scene,
|
||||||
camera,
|
camera,
|
||||||
controls,
|
controls,
|
||||||
2,
|
1,
|
||||||
{
|
{
|
||||||
x: Math.sin(degToRad(30)), // Смещение по оси X
|
x: Math.sin(degToRad(30)), // Смещение по оси X
|
||||||
y: 1, // Нет смещения по оси Y
|
y: 1, // Нет смещения по оси Y
|
|
@ -6,12 +6,12 @@ import { degToRad } from 'three/src/math/MathUtils.js'
|
||||||
|
|
||||||
const { camera, controls } = useTresContext()
|
const { camera, controls } = useTresContext()
|
||||||
|
|
||||||
const { scene } = await useGLTF('/models/table.glb')
|
const { scene } = await useGLTF('/models/urna2.glb')
|
||||||
const object = calculateScaleToFit(
|
const object = calculateScaleToFit(
|
||||||
scene,
|
scene,
|
||||||
camera,
|
camera,
|
||||||
controls,
|
controls,
|
||||||
3,
|
1,
|
||||||
{
|
{
|
||||||
x: Math.sin(degToRad(-30)), // Смещение по оси X
|
x: Math.sin(degToRad(-30)), // Смещение по оси X
|
||||||
y: 1, // Нет смещения по оси Y
|
y: 1, // Нет смещения по оси Y
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue