figureone
    Preparing search index...

    Options object for any FigureElementPrimitive.

    These properties are available when defining any FigureElementPrimitive.

    • name string — name of figure element
    • position TypeParsablePoint — position overrides transform translation
    • transform TypeParsableTransform — transform to apply to element
    • color TypeColor — color to apply to element (is passed as the 'u_color' uniform to the fragment shader)
    • touch boolean | OBJ_Touchtrue, number or TypeParsablePoint will set the element as touchable. If number, then element touch volume is the scaled actual volume in x, y, and z. For example, if 2, then the touchable volume is twice the actual volume. If TypeParsablePoint then the x, y, and z scales can be set independantly (false)
    • move boolean | OBJ_ElementMove — setting this to anything but false will set the element as movable. Use OBJ_ElementMove to customize the movement options
    • dimColor TypeColor — RGBA is used when vertex colors are from a uniform, otherwise just the alpha channel is used.
    • defaultColor TypeColor
    • scenarios OBJ_Scenarios — Define position/transform/rotation/scale/color scenarios tied to the element
    • scene OBJ_Scene | Scene — Give the element a custom scene that is independant of the figure scene. For example, use this to create a 3D object in a 2D figure.