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
Object3D.lookAt question #14930
Comments
Rotated parents are now supported; non-uniformly-scaled parents are not. The docs, by the way, are outdated. |
I wonder why I couldn't get it to work then. Very well, I am closing this since I don't have a fiddle to back it up. |
Is this still the case?
.. I need to point the positive x-axis at the target. |
Not sure if (or why) is this supposed to be like that, but Object3D.lookAt is currently long-ass code that does not work within hierarchy, and it even says so in the docs:
What am I currently using instead of
mesh.lookAt (target)
is these 2 lines:I have
target
in local space, and could not care less where doesup
point to, so it works for me. However, even if I had to use world space and specificup
, it would add at most couple of lines to convert them into local space and we're back to this simple code.With that in mind, I'd like to know what is the reason behind current Object3D.lookAt version?
The text was updated successfully, but these errors were encountered: