This task needs to be in the following format.
Orbit = {
id = 'Orbit',
params = {
pattern = = string
point = Vec2,
point2 = Vec2,
speed = Distance,
altitude = Distance,
hotLegDir = radians,
legLength = distance,
width = distance,
clockWise = boolean,
}
}
Required parameters:
pattern: defines the type of orbit pattern the AI will execute.
Optional Parameters:
All other variables are optional.
point: vec2 point for which the orbit will originate from. If not defined the position of their current waypoint will be used.
point2: vec2 second point for a Race-Rrack orbit pattern. If not defined the next waypoint position will be used.
speed: Speed in meters per second the AI will orbit at. If no speed is defined then the AI will orbit at 1.5 their stall speed.
altitude: Altitude in meters the AI will orbit at. If not defined the altitude of their current waypoint will be used.
hotLegDir: (anchored param) Heading in radians that the aircraft will fly for the return leg of the orbit
legLength: (anchored param) Distance in meters that the aircraft will fly before turning.
width: (anchored param) Distance in meters that represents the diameter of the orbit
clockWise: (anchored param) true/false value for whether the orbit will fly clockwise or anti-clockwise. Anti-clockwise is default.
|