How to get camera direction vector in HOOPS Communicator

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…

Not sure I follow. The camera target definitely changes when using the walk operator.

In any case, subtracting target from position will give you the camera direction for all cases.