• Creates an instance of an AR cube object.

    Parameters

    • position: Vector3

      Position of object in augmented world.

    • width: number

      Width of the cube in metres.

    • height: number

      Height of the cube in metres.

    • depth: number

      Depth of the cube in metres.

    • color: number

      Decimal representation of hex color.

    • Optional onSelect: (() => any)

      Function to call when object is tapped.

        • (): any
        • Returns any

    Returns CubeObject

    Created AR cube object.