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

Pivot each piece to face the camera #3

Closed
felixmariotto opened this issue Aug 29, 2022 · 1 comment
Closed

Pivot each piece to face the camera #3

felixmariotto opened this issue Aug 29, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@felixmariotto
Copy link
Owner

When pieces are laid out in grid, it would be much better if they were also pivoted so that their front face look at the camera.

Currently half the pieces look away from the camera, that's not ideal :
Screenshot 2022-08-29 204859

It should happen here :

/*
Ideally here is would be nice to add a function to pivot the part so it doesn't look "away"
from the center of the scene.
Idea: computing the normal of 10 random triangle in the mesh, computing the average, and pivot
the part so this averaged normal look the camera.
*/

@felixmariotto
Copy link
Owner Author

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant