Skip to content

(Suggestion) Automatically set pivot points of cubes to (0, 0, 0) #12

@SilverChimerawing

Description

@SilverChimerawing

A function to attempt to automatically set the pivot points of all cubes in the model to (0, 0, 0) while preserving their transforms. If for any reason this is not possible for a given cube, the pivot would be left as-is rather than altering the transform.
This is an optimization for Figura you previously mentioned to me (if the pivot of a cube is (0, 0, 0), Figura does not store the pivot, saving a few bytes). Having tested this (albeit somewhat unscientifically), it can make a surprising difference for complex models with many cubes. However, manually setting the pivot to (0, 0, 0) for all of those cubes can be a chore. Since the whole purpose of this plugin is to optimise models for Figura, it makes sense to add a function to take advantage of this feature automatically.

(Previously suggested on the FiguraMC Discord but it didn't seem to make it into the issues :P)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions