Jump to content

setCameraMatrix rotation problem


Fist

Recommended Posts

Hello.

When i use setCameraMatrix it works all fine, but i want rotate angle to 180 and when i put in code in rotation 180 it only rotates like 10 or 20 not full 180. Is there solution for this?

code

  
setCameraMatrix (-1443.1142578125,-1509.5010986328,102.61036682129,180) 
  

Link to comment

Check the variables and take a look using 5000.

lookAtX: The x coordinate of the point the camera faces.

lookAtY: The y coordinate of the point the camera faces.

lookAtZ: The z coordinate of the point the camera faces.

roll: The camera roll angle, -180 to 180. A value of 0 means the camera sits straight, positive values will turn it counter-clockwise and negative values will turn it clockwise. -180 or 180 means the camera is upside down.

fov: the field of view angle, 0 to 180. The higher this value is, the more you will be able to see what is to your sides.

Link to comment
Check the variables and take a look using 5000.

lookAtX: The x coordinate of the point the camera faces.

lookAtY: The y coordinate of the point the camera faces.

lookAtZ: The z coordinate of the point the camera faces.

roll: The camera roll angle, -180 to 180. A value of 0 means the camera sits straight, positive values will turn it counter-clockwise and negative values will turn it clockwise. -180 or 180 means the camera is upside down.

fov: the field of view angle, 0 to 180. The higher this value is, the more you will be able to see what is to your sides.

i did use 5000, but still it rotated like 20 or 10, not full 180 angle.

Link to comment
so, there is kinda solution for this ?

use the template arguments

local pos1, pos2, pos3 = 1468.8785400391, -919.25317382813, 100.153465271 
local pos4, pos5, pos6 = 1468.388671875, -918.42474365234, 99.881813049316 
setCameraMatrix(source/localplayer, pos1, pos2, pos3, pos4, pos5, pos6 ) 

Link to comment
so, there is kinda solution for this ?

use the template arguments

local pos1, pos2, pos3 = 1468.8785400391, -919.25317382813, 100.153465271 
local pos4, pos5, pos6 = 1468.388671875, -918.42474365234, 99.881813049316 
setCameraMatrix(source/localplayer, pos1, pos2, pos3, pos4, pos5, pos6 ) 

omg, its same thing. Pls dont post anymore.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...