Kenix Posted January 28, 2012 Posted January 28, 2012 Before that I used function setCameraTarget but camera always lagged. http://bugs.mtasa.com/view.php?id=6666 So i create camera with setCameraMatrix and update in onClientPreRender and camera works perfect not lagged , but i have question .How to make the camera does not pass through the building or something. I know , need check between camera and target element with function processLineOfSight. If can lay out an example. I'm not good in the matrix. Thanks in advance.
arezu Posted January 28, 2012 Posted January 28, 2012 use processLineOfSight and if hit, get the hit position and set the camera position as that position
Kenix Posted January 29, 2012 Author Posted January 29, 2012 Hmm i tested this , but camera few passes through the object. I see in gamemodes:Basemode,Tactics it created perfect .I very interested.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now