interface Base3DHandler {
    flipZ(enable): void;
    getCenterZInScene(): number;
    getDepth(): number;
    getRotationX(): number;
    getRotationY(): number;
    getScaleZ(): number;
    getUnrotatedAABBMaxZ(): number;
    getUnrotatedAABBMinZ(): number;
    getZ(): number;
    isFlippedZ(): boolean;
    setCenterZInScene(z): void;
    setDepth(depth): void;
    setRotationX(angle): void;
    setRotationY(angle): void;
    setScaleZ(newScale): void;
    setZ(z): void;
    turnAroundX(deltaAngle): void;
    turnAroundY(deltaAngle): void;
    turnAroundZ(deltaAngle): void;
}

Implemented by

Methods

  • Get the object rotation on the X axis in degree.

    This is an Euler angle. Objects use the ZYX order.

    Returns number

  • Get the object rotation on the Y axis in degree.

    This is an Euler angle. Objects use the ZYX order.

    Returns number

  • Return the top Z of the object. Rotations around X and Y are not taken into account.

    Returns number

  • Return the bottom Z of the object. Rotations around X and Y are not taken into account.

    Returns number

  • Change the object center Z position in the scene.

    Parameters

    • z: number

      The new Z position of the center in the scene.

    Returns void

  • Set the object rotation on the X axis.

    This is an Euler angle. Objects use the ZYX order.

    Parameters

    • angle: number

      the rotation angle on the X axis in degree

    Returns void

  • Set the object rotation on the Y axis.

    This is an Euler angle. Objects use the ZYX order.

    Parameters

    • angle: number

      the rotation angle on the Y axis in degree

    Returns void

  • Change the scale on Z axis of the object (changing its depth).

    Parameters

    • newScale: number

      The new scale (must be greater than 0).

    Returns void

  • Turn the object around the scene X axis at its center.

    Parameters

    • deltaAngle: number

      the rotation angle in degree

    Returns void

  • Turn the object around the scene Y axis at its center.

    Parameters

    • deltaAngle: number

      the rotation angle in degree

    Returns void

  • Turn the object around the scene Z axis at its center.

    Parameters

    • deltaAngle: number

      the rotation angle in degree

    Returns void