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

How can I get the scaling values? #26

Closed
kllilizxc opened this issue May 2, 2018 · 1 comment
Closed

How can I get the scaling values? #26

kllilizxc opened this issue May 2, 2018 · 1 comment

Comments

@kllilizxc
Copy link

Sorry if I missed it, I noticed you can use getPosition and getRotationQuaternion to get the position and rotation information, but how can I get the scaling ones?
What I want is to know the changed values in registered action listeners, since the only argument for the listener is the action type, so I have to get the values by other functions, am I right?

@ssatguru
Copy link
Owner

ssatguru commented May 3, 2018

@kllilizxc
getPosition and getRotationQuaternion provides the position and rotation information about the edit control not the mesh to which the edit control is "attached". Because the scale of the edit control does not change there is no getScale method . You can of course check the scale of the mesh directly by using standard babylonjs API to get it scale. So use the action listener to find if the scale changed then query the mesh to get the scale.

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

No branches or pull requests

2 participants