webani - v1.0.0
    Preparing search index...

    Options for initializing a WebaniMesh object.

    type WebaniMeshOptions = {
        animations?: { [key: string]: AnimationSet };
        extraTransforms?: WorldTransform[];
        joints?: WebaniMeshJoint[];
        material?: WebaniMaterial;
        position: Vector3;
        rotation?: Vector3;
        rotationalCenter?: Vector3;
        scale?: Vector3;
        triangleVertices: Vector3[];
        vertexJoints?: Vector4[];
        vertexNormals: Vector3[];
        vertexUVs?: Vector2[];
        vertexWeights?: Vector4[];
    }
    Index

    Properties

    animations?: { [key: string]: AnimationSet }

    The animations associated with the mesh. Optional property.

    extraTransforms?: WorldTransform[]

    Extra transformations applied to the mesh. Optional property, default is an empty array.

    joints?: WebaniMeshJoint[]

    The joints for the mesh. Optional property.

    material?: WebaniMaterial

    The material applied to the mesh. Optional property.

    position: Vector3

    The position of the mesh in 3D space.

    rotation?: Vector3

    The rotation of the mesh in 3D space, represented as a Vector3. Optional property, default is [0, 0, 0].

    rotationalCenter?: Vector3

    The rotational center of the mesh, represented as a Vector3. Optional property.

    scale?: Vector3

    The scale of the mesh, represented as a Vector3. Optional property, default is [1, 1, 1].

    triangleVertices: Vector3[]

    The triangle vertices of the mesh, represented as an array of Vector3 objects.

    vertexJoints?: Vector4[]

    The vertex joint indices, represented as an array of Vector4 objects. Optional property.

    vertexNormals: Vector3[]

    The vertex normals of the mesh, represented as an array of Vector3 objects.

    vertexUVs?: Vector2[]

    The vertex UV coordinates of the mesh, represented as an array of Vector2 objects. Optional property.

    vertexWeights?: Vector4[]

    The vertex weights, represented as an array of Vector4 objects. Optional property.