Blockbench Reference Docs
    Preparing search index...

    Function getSelectionCenter

    • Get the world-space center of the selection

      Parameters

      • all: boolean = false

        If true, calculate the center of all elements instead of just selected

      Returns ArrayVector3

    • Get the world-space center of the selection

      Parameters

      • Optionalall: boolean

        If true, calculate the center of all elements instead of just selected

      Returns any