webani - v1.0.0
    Preparing search index...

    Options for constructing a WebaniPrimitiveObject.

    type WebaniPrimitiveObjectOptions = {
        extraTransforms?: WorldTransform[];
        material?: WebaniMaterial;
        position?: Vector3;
        rotation?: Vector3;
        rotationalCenter?: Vector3;
        scale?: Vector3;
    }
    Index

    Properties

    extraTransforms?: WorldTransform[]

    Additional transformations to apply to the object. Default is an empty array.

    material?: WebaniMaterial

    The material of the object. Default is a white WebaniMaterial.

    position?: Vector3

    The position of the object in 3D space. Default is [0, 0, 0].

    rotation?: Vector3

    The rotation of the object as a vector. Default is [0, 0, 0].

    rotationalCenter?: Vector3

    The center point around which the object rotates. Default is undefined.

    scale?: Vector3

    The scale of the object. Default is [1, 1, 1].