public static bool TryGetClosestVehicleNode(Vector3 pos, RoadType type, out Vector3 node) { var ret = new NativeVector3(); try { unsafe { return(Call <bool>(GET_CLOSEST_VEHICLE_NODE, pos, new IntPtr(&ret), type, 3.0f, 0)); } } finally { node = ret; } }
public static bool TryGetClosestVehicleNode(Vector3 pos, RoadType type, uint index, out Vector3 node, out float heading, out int id) { var ret = new NativeVector3(); float h = 0f; int i = 0; try { unsafe { return(Call <bool>(GET_NTH_CLOSEST_VEHICLE_NODE_WITH_HEADING, pos, index, new IntPtr(&ret), new IntPtr(&h), new IntPtr(&i), type, 3.0f, 0)); } } finally { node = ret; heading = h; id = i; } }