Skip to content

RootTransformsBuilder

inner class RootTransformsBuilder

Functions

end

fun end(): AModelBuilder<T>

leftRotation

fun leftRotation(leftRotation: Quaternionf?): AModelBuilder.RootTransformsBuilder

Sets the left rotation of the root transform.

Return

this builder

Parameters

  • leftRotation: the left rotation

Throws

NullPointerException

if leftRotation is null

origin

postRotation

fun postRotation(postRotation: Quaternionf?): AModelBuilder.RootTransformsBuilder

rightRotation

fun rightRotation(rightRotation: Quaternionf?): AModelBuilder.RootTransformsBuilder

rotation

fun rotation(rotation: Quaternionf?): AModelBuilder.RootTransformsBuilder

Sets the left rotation of the root transform.

Return

this builder

Parameters

  • rotation: the left rotation

Throws

NullPointerException

if rotation is null

Sets the left rotation of the root transform.

Return

this builder

Parameters

  • x: x rotation

  • y: y rotation

  • z: z rotation

  • isDegrees: whether the rotation is in degrees or radians

scale

fun scale(
    xScale: Float, 
    yScale: Float, 
    zScale: Float
): AModelBuilder.RootTransformsBuilder

toJson

fun toJson(): JsonObject

transform

fun transform(transformation: Transformation): AModelBuilder.RootTransformsBuilder

translation

fun translation(translation: Vector3f?): AModelBuilder.RootTransformsBuilder

Sets the translation of the root transform.

Return

this builder

Parameters

  • translation: the translation

Throws

NullPointerException

if translation is null

Sets the translation of the root transform.

Return

this builder

Parameters

  • x: x translation

  • y: y translation

  • z: z translation