[QUESTION][C#.NET] How can i get the direction the car is facing?
Im trying to aplly force into players car
mycar = playerPed.CurrentVehicle; mycar.ApplyForceRelative();
Now how can i get the direction the car is facing?
You can get it from the car object too.
myCar.ForwardVectoris the forward direction.
veh.ApplyForceRelative(veh.ForwardVector * force);should work.
@ikt not really forwardVector most of the times is not in front of the car at all , im still in vehicle i apply force and it goes to the left.
Whoops, that's relative so relative + forward throws you in a whole other direction. If relative, just use some scalar for the Y-direction (Y-positive = forward). If not relative, use ApplyForce normally.
veh.ApplyForceRelative(new Vector3(0, force, 0));probably works.
@ikt that worked thank you