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

Calculate dynamically Object3D center #17

Closed
jscastro76 opened this issue Jul 23, 2020 · 1 comment
Closed

Calculate dynamically Object3D center #17

jscastro76 opened this issue Jul 23, 2020 · 1 comment
Assignees
Labels
🍏 feature New feature or request
Milestone

Comments

@jscastro76
Copy link
Owner

Objects3D can have different positional and pivotal center depending on their objects. 3D loaded models pivotal center is normally defined in the model itself and for Three.js geometries, the positional and pivotal center is x/2, y/2, z/2.

For accurate and standard positioning across all 3DObjects, the center of any object must be calculated and then redefined based on a param, similar to what is done in Mapbox for (Markers)[https://docs.mapbox.com/mapbox-gl-js/api/markers/#marker] where options.anchor could have these values 'center' , 'top' , 'bottom' , 'left' , 'right' , 'top-left' , 'top-right' , 'bottom-left' , and 'bottom-right'

@jscastro76 jscastro76 added the 🍏 feature New feature or request label Jul 23, 2020
@jscastro76 jscastro76 self-assigned this Jul 23, 2020
@jscastro76 jscastro76 added this to the v2.0.4 milestone Jul 23, 2020
jscastro76 added a commit that referenced this issue Jul 25, 2020
Issues #13, #15, #16, #17, #18, #19, #20, #21, #22
@jscastro76
Copy link
Owner Author

v.2.0.4.

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

No branches or pull requests

1 participant