Engine API Reference - v2.20.0-beta.0
    Preparing search index...

    Class FocusControllerAlpha

    The focus controller.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _pose: Pose = ...
    focusDamping: number = 0.98

    The focus damping. In the range 0 to 1, where a value of 0 means no damping and 1 means full damping. Default is 0.98.

    Methods

    • Alpha

      Parameters

      • pose: Pose

        The initial pose of the controller.

      • Optionalsmooth: boolean = true

        Whether to smooth the transition.

      Returns void

    • Alpha

      Returns boolean

    • Alpha

      Returns void

    • Alpha

      Returns void

    • Alpha

      Parameters

      • frame: InputFrame<{ move: number[]; rotate: number[] }>

        The input frame.

      • dt: number

        The delta time.

      Returns Pose

      • The controller pose.