Small World Engine API Reference - v0.78.00
    Preparing search index...

    Class FlyController

    A full 6-DOF free-flight spectator controller with solid wall and obstacle collisions.

    Controls:

    • Mouse / PointerLock: Look around (Pitch & Yaw)
    • W / S: Fly forward / backward in 3D look direction
    • A / D: Strafe left / right
    • Space / E: Ascend (Up)
    • C / Q: Descend (Down)
    • Shift: Boost flight speed (2.5x)
    • Alt / Ctrl: Precision crawl (0.35x)

    Hierarchy (View Summary)

    Index
    enabled: boolean = true
    isActive: boolean = true
    target: CameraInterfaceData | Object3D | undefined = undefined

    The object this behavior is attached to. Set automatically.

    uuid: string = ...
    inspector?: Record<string, InspectorField>
    • Returns an independent copy of this behavior (own uuid, target cleared -- the caller is expected to attachBehavior() it onto the new host, which sets target correctly via onAttach()). Used by Object3D.clone() (Maker's Duplicate command).

      Returns Behavior