Вот мой Javascript-код
Код: Выделить всё
import * as THREE from 'three';
import { GLTFLoader } from 'three/examples/jsm/Addons.js';
import { DragControls } from 'three/examples/jsm/Addons.js';
const canvas = document.querySelector('.gamescreen');
const scene1 = new THREE.Scene();
const scene2 = new THREE.Scene();
const loader1 = new GLTFLoader();
loader1.load('assets/Background.glb', function(glb){
const stage = glb.scene;
for (let i = -20; i
Подробнее здесь: [url]https://stackoverflow.com/questions/79865734/how-to-move-glb-file-via-dragcontrols[/url]
Мобильная версия