How to unproject mouse2D with Orthographic Camera

camera
math

#1

Hi guys… someone knows how to project mouse 2D position into World space with orthographic camera ?


#2

Try this:

const vector = new THREE.Vector3();
vector.set( mouse.x, mouse.y, ( camera.near + camera.far ) / ( camera.near - camera.far ) );
vector.unproject( camera );

BTW: You do not project. You unproject^^.


Orthographic unproject