#Mesh object

3 messages · Page 1 of 1 (latest)

mighty carbon
#

When you make a mesh object like a cube is it added to the Dom and if so how do you access it where you can add an event listener or something

raw jolt
#

is it added to the Dom
not in vanilla three.js
how do you access it
by using a variable in the code is the only way
where you can add an event listener or something
the only way to add interactions in vanilla three is by using a raycaster and detecting intersections (https://threejs.org/examples/?q=inter#webgl_interactive_cubes - code in bottom right)