I have been trying to find a way to get the camera direction vector in the HOOPS Communicator. I have only found functions for getting camera position, up vector and target.
I am using the camera: () => {} function to track the camera movement and want to know witch direction the camera is pointing.
If you have the camera target and position, all you need to do is subtract position from target and normalize that vector to get the camera direction vector.
I have been trying that possibility, but the target is static, and you may rotate the camera freely without changing the target position. Like when using walkmode etc…