Перейти к основному содержанию

ActorRenderer

Index

Classes

Classes

ModelPart

ModelPart:

All methods of ActorRenderer.ModelPart build in such a way, that you can create full render in one chain of calls.

@example
new ActorRenderer()
.addPart("child", "parent")
.addBox(-4, -4, -4, 4, 0, 4)
.addPart("grandChild", "child")
.addBox(-4, 0, -4, 4, 4, 4)
.setOffset(0, 4, 0)
.endPart();

constructor

addBox

  • addBox(x: number, y: number, z: number, sizeX: number, sizeY: number, sizeZ: number, inflate: number, u: number, v: number): ModelPart
  • Parameters

    • x: number
    • y: number
    • z: number
    • sizeX: number
    • sizeY: number
    • sizeZ: number
    • inflate: number

      increases the box by a certain value in all directions

    • u: number
    • v: number

    Returns ModelPart

clear

endPart

setMaterial

  • Parameters

    • materialName: string

    Returns ModelPart

setMirrored

  • Parameters

    • isMirrored: boolean

    Returns ModelPart

setOffset

  • setOffset(x: number, y: number, z: number): ModelPart
  • Parameters

    • x: number
    • y: number
    • z: number

    Returns ModelPart

setPivot

  • setPivot(x: number, y: number, z: number): ModelPart
  • Parameters

    • x: number
    • y: number
    • z: number

    Returns ModelPart

setRotation

  • setRotation(x: number, y: number, z: number): ModelPart
  • Parameters

    • x: number
    • y: number
    • z: number

    Returns ModelPart

setTexture

  • Parameters

    • textureName: string

    Returns ModelPart

setTextureSize

  • setTextureSize(w: number, h: number): ModelPart
  • Parameters

    • w: number
    • h: number

    Returns ModelPart

Page Options