rhodonite
    Preparing search index...

    Class AbstractCameraControllerAbstract Internal

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

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    __targetEntities: ISceneGraphEntity[]
    autoCalculateZNearAndZFar: boolean = true
    zFarScalingFactor: number = 100000
    zNearMax: number = 0.1

    Methods

    • 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