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

Uncaught ReferenceError: myObjectWidth is not defined #15735

Closed
imguccho opened this issue Feb 7, 2019 · 0 comments
Closed

Uncaught ReferenceError: myObjectWidth is not defined #15735

imguccho opened this issue Feb 7, 2019 · 0 comments

Comments

@imguccho
Copy link

imguccho commented Feb 7, 2019

Something like this should work as well with three.js v78, if you wanted to eg. rotate around your objects edge instead if its center:

mesh.geometry.translate( -myObjectWidth/2, 0, 0 );

Originally posted by @nylki in #1364 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants