Calculating coords for points behind vehicle (math)
#2

I don't know the math for this, but I have this function which gets in-front of/behind vehicle.

I think this could help, you just need to move this point to left and right 2 times with different distance.

PHP код:
stock GetInFrontOfVehicle(vehicleid, &Float:x, &Float:yFloat:distance)
{
    new 
Float:a;
    
GetVehiclePos(vehicleidxya);
    
GetVehicleZAngle(vehicleida);
    
+= (distance floatsin(-adegrees));
    
+= (distance floatcos(-adegrees));

Reply


Messages In This Thread
Calculating coords for points behind vehicle (math) - by Riwerry - 10.09.2018, 01:41
Re: Calculating coords for points behind vehicle (math) - by AmirSavand - 10.09.2018, 01:46
Re: Calculating coords for points behind vehicle (math) - by Riwerry - 10.09.2018, 01:48
Re: Calculating coords for points behind vehicle (math) - by Nero_3D - 10.09.2018, 02:34

Forum Jump:


Users browsing this thread: 1 Guest(s)