-
Hello there! I want to zoom on the face of my model, however right now i just hardcoded it which is bad, because different models may have different sizes, heights. So the question is: how can I get vrm model face's coordinates so i could know where to zoom to? Thank you! |
Beta Was this translation helpful? Give feedback.
Answered by
0b5vr
Nov 24, 2022
Replies: 1 comment 1 reply
-
You would want to choose either of them:
While you can get the position of the head using these methods, you can't retrieve the size of the head unfortunately. You would want to do the hardcoding for this. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ALABOET
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You would want to choose either of them:
vrm.humanoid.getNormalizedBoneNode('head').getWorldPosition()
gives you the position of the head bone.vrm.lookAt.getLookAtWorldPosition()
gives you the position of the lookAt (i.e. their view position, the center of the eyes)While you can get the position of the head using these methods, you can't retrieve the size of the head unfortunately. You would want to do the hardcoding for this.