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

Create an option to translate an object based on world coordinates (obj.position) #187

Closed
jscastro76 opened this issue Jan 22, 2021 · 0 comments
Assignees
Labels
🍏 feature New feature or request
Milestone

Comments

@jscastro76
Copy link
Owner

Considering you want to translate an object in one or more of it's axes a concrete number of units, the movement of an object should accept translation in world coords, exactly the same we can do it with a full world position. There's a method for translation but only accepts LngLat values tb.set({options: "translate", ...}).

We could have a new option in tb.set({options: "worldTranslate", ...}) that accepst a Vector3 (to be consistant with world positions), that will translate the object in each one of the axes.

@jscastro76 jscastro76 added the 🍏 feature New feature or request label Jan 22, 2021
@jscastro76 jscastro76 added this to the v.2.1.8. milestone Jan 22, 2021
@jscastro76 jscastro76 self-assigned this Jan 22, 2021
jscastro76 added a commit that referenced this issue Jan 22, 2021
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