The direction of movement of the camera

There is no direction what method can always get the camera, how to say?

Do you want to know what direction the camera is facing?

direction of motion

What are you trying to achieve?

raycaster = new THREE.Raycaster( new THREE.Vector3(), new THREE.Vector3(), 0, 10 );
The method of the second parameters I think I want to do with the direction of movement of the camera, so how can I get the camera’s motion direction, dynamic acquisition

Now the controls is constantly changing, how do I get the direction of movement of the camera in this case

Have you checked on Stackoverflow? There are lots of questions similar to this. For example:

Also check out the getWorldDirection method, it’s probably what you are looking for:

https://threejs.org/docs/#api/cameras/Camera.getWorldDirection

1 Like

thanks