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

Flat-based objects positioned correctly #624

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

jf-kelly
Copy link
Contributor

Description

These changes (to setPosition() and setYPos()) make it so that objects with flat bases (box(), cylinder(), etc.) are positioned correctly on the floor when y is set to 0. This was a problem caused by scaling, since the position is set based on the center of the object, which does not change when the scale is changed. So, that is why there were issues with objects being set at y=0, yet not actually being aligned on the ground.
As of now, this fix only works for objects with flat bases, but it seems to be an improvement on the current functions in production.

Preview

2022-08-11 (1)

Related Issue

#604

@jf-kelly jf-kelly requested review from a team, rjmara, banthedev and nkisari and removed request for a team August 11, 2022 20:19
@jf-kelly jf-kelly added bug Something isn't working MYR API Relating to the MYR API Frontend Issues being caused via the frontend Discussion needed The issue requires discussion about design before development labels Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Discussion needed The issue requires discussion about design before development Frontend Issues being caused via the frontend MYR API Relating to the MYR API
Projects
Status: Needs Review
Development

Successfully merging this pull request may close these issues.

1 participant