Open madamc opened 1 year ago
The origin of the loaded vox meshes is at the the origin of the shape containing them ((0, 0, 0)), so the one of the bottom corners as you mentionned. An option to add an offset to the meshes can probably be added to set their origin to the "mesh" gravity center, as per what bevy does by default.
In the "basic" example, if you spawn a cube at the same location as a .vox model, it appears that the .vox model is imported within a larger shape, but is positioned at one of the corners of the invisible shape. If you rotate the transform of the .vox mesh, it rotates around the center point of the invisible shape.