As title.
In three.js, i use ArcballControls to control my camera.
I want to get the xyz axis vector2 correspond my screen.
As below image ,i would get xAxis = {x:1,y:-1}, yAxis={x:-1,y:5}, zAxis={x:-5,y:-1}
Thanks all.
As title.
In three.js, i use ArcballControls to control my camera.
I want to get the xyz axis vector2 correspond my screen.
As below image ,i would get xAxis = {x:1,y:-1}, yAxis={x:-1,y:5}, zAxis={x:-5,y:-1}
Thanks all.
You can use Vector3.project(camera) function to project world axes to ndc space, where you can consider near plane of ndc cube to be your screen.
i resolve it!!!
thanks!!!