AlexisTercero55 / THREEjs_III

Another abstraction level for computer graphics on the web, build on top of Threejs.
https://alexistercero55.github.io/THREEjs_III/
1 stars 0 forks source link

Mouse ray caster function #20

Open AlexisTercero55 opened 1 year ago

AlexisTercero55 commented 1 year ago

Pre-built utilities as

// Ray caster
const raycaster = new THREE.Raycaster();
const mouse = new THREE.Vector2();

or

https://github.com/AlexisTercero55/THREEjs_III/blob/4432ea0683b8f9d9986060ef5931694b460796fa/js/meshOnClick/III_MeshOnClick.js#L92