rhodonite
    Preparing search index...

    Class AbstractCameraControllerAbstract Internal

    AbstractCameraController is an abstract class that defines the interface for camera controllers.

    Hierarchy (View Summary)

    Index
    __targetEntities: ISceneGraphEntity[]
    autoCalculateZNearAndZFar: boolean = true
    zFarScalingFactor: number = 100000
    zNearMax: number = 0.1
    • Calculates the far clipping plane (zFar) for the camera based on the near clipping plane and a scaling factor. This method is used when autoCalculateZNearAndZFar is enabled.

      Parameters

      Returns void

    • Calculates the near clipping plane (zNear) for the camera based on the target entities' bounding boxes. This method is used when autoCalculateZNearAndZFar is enabled and there are target entities.

      Parameters

      • camera: CameraComponent

        The camera component to update.

      • eyePosition: Vector3

        The position of the camera's eye in world space.

      • eyeDirection: Vector3

        The direction the camera is facing.

      Returns void

    • Parameters

      Returns void