My objects are currently moving on the XZ axis using drag and drop functionality.
However, I am facing issues with the collada files not behaving in the same manner...
Below is my code snippet:
var container;
var camera, controls, scene, renderer;
var objects = [], plane;
var raycaster = new THREE.Raycaster();
var mouse = new THREE.Vector2(),
offset = new THREE.Vector3(),
INTERSECTED, SELECTED;
// Function to initialize the scene
function init() {
// Code logic for initialization goes here
}
// Function to handle window resize event
function onWindowResize() {
// Code logic for resizing the window goes here
}
// Function to handle mouse movement within the renderer
function onDocumentMouseMove( event ) {
// Code logic for handling mouse movements goes here
}
// Other functions like onDocumentMouseDown, onDocumentMouseUp, animate, render go here
I am experiencing difficulty in selecting the colladas and moving them around. Can anyone identify the root cause of this issue?
Your insights and suggestions would be greatly appreciated! :)