Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.Vox Meshes are imported offset within large blank mesh #7

Open
madamc opened this issue Apr 23, 2023 · 1 comment
Open

.Vox Meshes are imported offset within large blank mesh #7

madamc opened this issue Apr 23, 2023 · 1 comment
Labels
bug Something isn't working enhancement New feature or request

Comments

@madamc
Copy link

madamc commented Apr 23, 2023

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.

@madamc madamc changed the title Meshes are imported with large blank mesh Meshes are imported offset within large blank mesh Apr 23, 2023
@madamc madamc changed the title Meshes are imported offset within large blank mesh .Vox Meshes are imported offset within large blank mesh Apr 23, 2023
@Game4all Game4all added the bug Something isn't working label Apr 24, 2023
@Game4all
Copy link
Owner

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.

@Game4all Game4all added the enhancement New feature or request label Apr 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants