LibCamera-1.0 is an embedded library to keep track of where the player's camera is, relative to the world. Its most useful purpose is to position UI elements relative to the in-game world to simulate a 3D overlay.
Camera position information is retrieved through CVars saved using the SaveView() function. Those angles, relative to the player, are then transformed to world-relative coordinates using the world map's player direction arrow. Yaw offsets from FlipCameraYaw() are also taken into account.
Returns the pitch, yaw, and distance of the camera from the player.
The pitch of the camera, in radians. 0 represents parallel to the horizon, and looking downwards from there increases the pitch value. Note that pitch is only bounded by the pitchLimit console command, and can go above 2π and below -2π.
The yaw of the camera, in radians. 0 represents due north, and the value increases as the camera looks counter-clockwise. Range of [0,2π).
The distance from the camera to the player, in meters. Range of [0,∞).
Returns only the distance of the camera from the player.
You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.
*Clicking the donate button above will take you to PayPal.com
*Clicking the donate button above will take you to Pledgie.com