Keep Camera Angle
#1

Good, this time I'm doing a system of Dashcams for vehicles but I have a small problem, I create an object in the position of the hood, just so that it looks good and I use an AttachCameraToObject so that the camera is always in that object but at the moment The car turns the camera is in the same angle leaving the car on one side of the hood and not facing as it starts, at first it looks good but it is when you turn the car that starts to see sideways.

Code that I am using.

Код:
GetVehicleZAngle(953,vAng);
SetPlayerFacingAngle(playerid, vAng);
SetCameraBehindPlayer(playerid);
PlayerSpectateVehicle(playerid, 953);
ObjetoCamaraVeh[playerid] = CreateObject(19300, 0, 0, 0, 0, 0, 0 );
AttachObjectToVehicle(ObjetoCamaraVeh[playerid], 953, 0, 1, 0.5, 0, 0, 0 );
AttachCameraToObject(playerid, ObjetoCamaraVeh[playerid]);
Reply


Messages In This Thread
Keep Camera Angle - by Romero837 - 23.06.2017, 03:20
Re: Keep Camera Angle - by DavidBilla - 23.06.2017, 03:50
Re: Keep Camera Angle - by NaS - 23.06.2017, 04:04
Re: Keep Camera Angle - by DavidBilla - 23.06.2017, 04:11
Respuesta: Keep Camera Angle - by Romero837 - 23.06.2017, 04:17
Re: Keep Camera Angle - by NaS - 23.06.2017, 04:18
Respuesta: Keep Camera Angle - by Romero837 - 25.06.2017, 01:01
Respuesta: Keep Camera Angle - by Romero837 - 25.06.2017, 13:15
Re: Respuesta: Keep Camera Angle - by NaS - 25.06.2017, 16:30
Respuesta: Re: Respuesta: Keep Camera Angle - by Romero837 - 26.06.2017, 15:48

Forum Jump:


Users browsing this thread: 1 Guest(s)