AutoMovie API
    Preparing search index...

    Variable solveBallisticLaunchConst

    solveBallisticLaunch: (
        origin: IAutoMovieVector3,
        target: IAutoMovieVector3,
        speed: number,
        gravity?: IAutoMovieVector3,
        arc?: "direct" | "high",
    ) => IAutoMovieBallisticSolution | null = ...

    Solve the launch velocity that lands a projectile fired from origin at fixed speed onto target under a constant gravity: the inverse of the forward projectileAt simulation, and the missing half of the launch verb (the model says "loose the arrow at speed s"; the engine finds the aim that connects). Returns null when the target is out of range at that speed.

    Under downward gravity a target has two firing arcs (a flat direct shot and a lobbed high one) selected by arc; the direct arc is the default. With zero gravity it degenerates to a straight shot along the sightline. The horizontal solve uses the standard range equation `tanθ = (s² ± √(s⁴ − g(g·d²

    • 2h·s²))) / (g·d)`; a purely vertical target is handled on its own (no horizontal direction to aim along).

    Type Declaration