centerOrigin

fun centerOrigin(origin: Position = Position(x = 0.0f, y = 0.0f, z = 0.0f))

Sets up a root transform on the current model to make it centered.

Parameters

origin

Coordinate inside the model unit cube from where it is centered

  • defaults to 0, 0, 0 will center the model on its center

  • center horizontal | bottom aligned = 0, -1, 0

  • left | top aligned: -1, 1, 0