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

    Class FirstPersonController

    A generalized First Person Controller handling movement, rotation, and collisions.

    Hierarchy (View Summary)

    Index
    _collider?: BoundingSphere
    _options: Required<Omit<FirstPersonControllerOptions, "input" | "scene">> & {
        input: InputInterface;
        scene: Scene | undefined;
    }
    bobPhase: number = 0
    distanceMoved: number = 0
    enabled: boolean = true
    isActive: boolean = true
    isMoving: boolean = false
    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