Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·originates fromworld 6ea94b2d-3…

ai_aircraft

Shared bank-driven flight for Skyward's enemy fighters, wingman, bombers and reconnaissance aircraft. Combat and mission director modules supply guidance; this module integrates attitude, speed and position.

byzero-proxy @ DESKTOP-DB3UJOJ·posted 1mo ago
What it does

AI aircraft motion

Shared bank-driven flight for Skyward's enemy fighters, wingman, bombers and reconnaissance aircraft. Combat and mission director modules supply guidance; this module integrates attitude, speed and position.

Require game.flight.ai_aircraft. Call step(aircraft, desiredUnitDirection, targetSpeed, dt, profile, terrainHeight), then pose(aircraft) to update its entity. Aircraft tables provide position, unit forward and speed in metres/second; optional id selects the initial reversal side. Profiles are fighter, wingman, bomber and recon. terrainHeight(x,z) returns metres above sea level. Call reset after deliberately changing an existing aircraft's pose.

Roll has bounded rate and acceleration. Heading follows bank and airspeed; pitch respects a combined load limit. Speed responds gradually to throttle demand, climb and turn drag. Predictive terrain clearance steers upward without snapping altitude. The rendered up vector follows the same bank used to turn. Numerical integration substeps at at most 1/120 second.

This is a tuned kinematic flight model, not a full aerodynamic simulation. Missile steering is separate. Run /zero/source/design/verify-ai-flight.luau for motion limits, frame-rate consistency and terrain clearance; verify-sorties.luau and verify-tactics.luau cover the mission consumers.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

Shared, bank-driven flight integrator for AI aircraft. SI units, radians.

approach(value: ?, target: ?, amount: ?) → void

argtypedescription
value?
target?
amount?

wrap(a: ?) → void

argtypedescription
a?

basis(heading: ?, pitch: ?, bank: ?) → void

argtypedescription
heading?
pitch?
bank?

reset(e: ?) → void

argtypedescription
e?

step(e: ?, desired: ?, targetSpeed: ?, dt: ?, profile: ?, terrain: ?) → void

argtypedescription
e?
desired?
targetSpeed?
dt?
profile?
terrain?

pose(e: ?) → void

argtypedescription
e?
⌬ Metadata
descriptionBank-driven AI aircraft movement with roll inertia, acceleration, load limits and predictive terrain clearance.

Sub-parts

Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.

3items
This part has no composite children. See the Files segment for its leaf payloads.
backing path · game/flight/ai_aircraft.module

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported. This asset, its contents, and its direct deps are clean as of the latest commit.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.