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

Shape constructors copy parameters #2088

Closed
wants to merge 1 commit into from
Closed

Conversation

mvaligursky
Copy link
Contributor

@mvaligursky mvaligursky commented May 20, 2020

Lets consider making shape constructors take copy of parameters instead of reference, to avoid possible errors of type:

var b = new pc.BoundingBox(pc.Vec3.ZERO, pc.Vec3.ZERO);
b._calculateAabb( ...) - this changes content of Vec3.ZERO !!

@slimbuck expressed concern that some code depends on existing behavior and so this cannot be simple submitted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: graphics Graphics related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants