コード例 #1
0
 public static extern int SE_GetRoadInfoAlongGhostTrail(int object_id, float lookahead_distance, ref RoadInfo data, ref float speed_ghost);
コード例 #2
0
 /// <summary>Get information suitable for driver modeling of a point at a specified distance from object along the road ahead</summary>
 /// <param name="object_id">Handle to the position object from which to measure</param>
 /// <param name="lookahead_distance">The distance, along the road, to the point</param>
 /// <param name="data">Struct including all result values, see typedef for details</param>
 /// <param name="along_road_center">Measure along the reference lane, i.e. at center of the road. Should be false for normal use cases</param>
 /// <param name="lookAheadMode">Measurement strategy: Along 0=lane center, 1=road center(ref line) or 2=current lane offset.See roadmanager::Position::LookAheadMode enum</param>
 /// <param name="inRoadDrivingDirection">If true always look along primary driving direction.If false, look in most straightforward direction according to object heading.</param>
 /// <returns>0 on success, -1 on failure for any reason</returns>
 public static extern int SE_GetRoadInfoAtDistance(int object_id, float lookahead_distance, ref RoadInfo data, int along_road_center);