Search Results for

    Show / Hide Table of Contents

    Class CameraUtils

    Static class providing various camera utility functions.

    Inheritance
    object
    CameraUtils
    Namespace: AS2
    Assembly: .dll
    Syntax
    public static class CameraUtils

    Methods

    | Edit this page View Source

    GetHightestXYCameraWorldPositions()

    Computes the top right corner of the active camera's bounding box in world coordinates.

    Declaration
    public static Vector2 GetHightestXYCameraWorldPositions()
    Returns
    Type Description
    Vector2

    The (x, y) coordinates of the active camera's bounding box's top right corner.

    | Edit this page View Source

    GetLowestXYCameraWorldPositions()

    Computes the lower left corner of the active camera's bounding box in world coordinates.

    Declaration
    public static Vector2 GetLowestXYCameraWorldPositions()
    Returns
    Type Description
    Vector2

    The (x, y) coordinates of the active camera's bounding box's lower left corner.

    | Edit this page View Source

    MainCamera_Mouse_WorldPosition()

    Computes the current world position of the mouse cursor.

    Declaration
    public static Vector2 MainCamera_Mouse_WorldPosition()
    Returns
    Type Description
    Vector2

    The (x, y) world coordinates of the current mouse position.

    | Edit this page View Source

    MainCamera_WorldPosition_BottomLeft()

    Bottom left world position of the main camera. (Unity World Coordinates)

    Declaration
    public static Vector2 MainCamera_WorldPosition_BottomLeft()
    Returns
    Type Description
    Vector2

    The (x, y) world coordinates of the active camera's bottom left corner.

    | Edit this page View Source

    MainCamera_WorldPosition_BottomRight()

    Bottom right world position of the main camera. (Unity World Coordinates)

    Declaration
    public static Vector2 MainCamera_WorldPosition_BottomRight()
    Returns
    Type Description
    Vector2

    The (x, y) world coordinates of the active camera's bottom right corner.

    | Edit this page View Source

    MainCamera_WorldPosition_TopLeft()

    Top left world position of the main camera. (Unity World Coordinates)

    Declaration
    public static Vector2 MainCamera_WorldPosition_TopLeft()
    Returns
    Type Description
    Vector2

    The (x, y) world coordinates of the active camera's top left corner.

    | Edit this page View Source

    MainCamera_WorldPosition_TopRight()

    Top right world position of the main camera. (Unity World Coordinates)

    Declaration
    public static Vector2 MainCamera_WorldPosition_TopRight()
    Returns
    Type Description
    Vector2

    The (x, y) world coordinates of the active camera's top right corner.

    • Edit this page
    • View Source
    In this article
    Back to top AmoebotSim 2.0 Documentation v1.11
    Copyright © 2025 AmoebotSim 2.0 Authors
    Generated by DocFX