Interface PartParameters

An interface of the object that is used as Render.addPart parameter.

interface PartParameters {
    add?: boolean;
    height?: number;
    pos?: [number, number, number] | Vector;
    rotation?: [number, number, number] | Vector;
    u?: number;
    v?: number;
    width?: number;
}

Properties

add?: boolean

If false or not specified in Render.setPart call, the part is cleared, otherwise new parts and params are applied to the existing parts.

height?: number

Texture height, use the real texture file height or change it to stretch texture.

pos?: [number, number, number] | Vector

Part center position.

rotation?: [number, number, number] | Vector

Part rotation.

u?: number

Texture horizontal offset from left up corner.

v?: number

Texture vertical offset from left up corner.

width?: number

Texture width, use the real texture file width or change it to stretch texture.

Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.