Jump to content

[Help] FPS Camera


bandi94

Recommended Posts

HY i am back after 3 months in this months i don't code anything so i forget many think's

Now i am back.

So i want to make a FPS camera look : i tried whit setCameraMatrix whit onClientPreRender the only problem is that now i can't turn my Ped whit the mouse i can't rotate the camera whit the ped on the mouse .

I wan't to make 2 camera's on is FPS and the secound something like FPS but when i rotate the camera then an object to rotate after the ped i will atach the ped to an object then the camera will be in front of the player then when i move the mouse left,right,up,down the the camera will rotate whit the object on the same time

So any one can help me how to make that i can rotate the camera whit the ped on FPS camera i think's i still need to use matrix then somehow detect the mouse movment calculate the new pos and set the camera ?

thx

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...