Posts: 83
Threads: 22
Joined: Sep 2011
Reputation:
0
I'm setting up a CCTV system for my users and I ran into a problem.
Is there a way to get the coordinates of the point at which a camera is pointing at? I need them to set the angle of the player's POV when he gets into camera mode, which is wrong by default.
Posts: 52
Threads: 4
Joined: Mar 2016
Reputation:
0
Well try to get player's camera looking angle, use sin/cos with degrees, use high number, and try to combine it with CA_RayCastLine (ColAndreas Function) to get closest X,Y,Z.
Posts: 83
Threads: 22
Joined: Sep 2011
Reputation:
0
The only information that i have are the position of camera and its rotation. How i could do?
Posts: 29
Threads: 4
Joined: Oct 2017
Reputation:
0
Why you need those positions? Can you write more?
Posts: 83
Threads: 22
Joined: Sep 2011
Reputation:
0
The information i need is the point (x,y,z) that camera is looking when it has a certain rotation (rx,ry,rz).
This is for set correctly the playercameralookat when a player enter in camera mode.