webani - v1.0.0
    Preparing search index...

    Options for constructing a WebaniTransformable.

    type WebaniTransformableOptions = {
        extraTransforms?: WorldTransform[];
        position?: Vector3;
        rotation?: Vector3;
        rotationalCenter?: Vector3;
        scale?: Vector3;
        scaleCompensation?: boolean;
        useOriginAsCenter?: boolean;
    }
    Index

    Properties

    extraTransforms?: WorldTransform[]

    An array of additional transformations to apply to the object. Default is an empty array.

    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 of rotation for the object. Default is undefined.

    scale?: Vector3

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

    scaleCompensation?: boolean

    If true, the scale of the parent will be compensated for. Default is false.

    useOriginAsCenter?: boolean

    If true, the object's center is set to the origin. Default is false.