Interior entarance?
#5



Uploaded with ImageShack.us

Here is what im meaning, using SetCameraBehindPlayer won't help me..

Getting player facing angle is possible
and X,Y defined already (distance between points)
so possible to find the camera XY, but i dont know how to use

floatsin and floatcos or tan... w/e.

this will work?

#define Distance 1.5
#define deg (180.0 + 20.0)
CameraCoords(playerid, &Float, &Float:y)
{
new Float:a;
GetPlayerPos(playerid, x, y, a);
GetPlayerFacingAngle(playerid, a);
if (GetPlayerVehicleID(playerid))
{
GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
}
x += (Distance * floatsin(-a + deg, degrees));
y += (Distance * floatcos(-a + deg, degrees));
}
Reply


Messages In This Thread
Interior entarance? - by roleplay501 - 14.10.2011, 17:13
Re: Interior entarance? - by Xyrex - 14.10.2011, 17:20
Re: Interior entarance? - by roleplay501 - 14.10.2011, 17:23
Re: Interior entarance? - by Xyrex - 14.10.2011, 17:28
Re: Interior entarance? - by roleplay501 - 14.10.2011, 18:05
Re: Interior entarance? - by OKStyle - 14.10.2011, 18:48
Re: Interior entarance? - by roleplay501 - 14.10.2011, 19:00
Re: Interior entarance? - by grand.Theft.Otto - 14.10.2011, 20:08
Re: Interior entarance? - by roleplay501 - 14.10.2011, 20:20
Re: Interior entarance? - by roleplay501 - 15.10.2011, 10:14

Forum Jump:


Users browsing this thread: 1 Guest(s)