Forum Discussion
CHADALAK1
12 years agoExplorer
Have Head Bone Rotate with OVR Camera Correctly
When i attach the camera to the head bone, it works fine, but when I program it to rotate the bone with one of the cameras, the head freaks out :/. any idea what to do to fix this??? public Tran...
Tamulur
12 years agoExplorer
You can correct for the different orientation when rotating the bone:
During runtime, change the avatar's neckCorrectionEuler in its inspector until it looks right (for most avatars, it's something like -90, 0, 0 or so), then enter those values outside of playmode.
public Vector3 neckCorrectionEuler;
void LateUpdate()
{
headBone.rotation = cameraObject.rotation * Quaternion.Euler (neckCorrectionEuler);
}
During runtime, change the avatar's neckCorrectionEuler in its inspector until it looks right (for most avatars, it's something like -90, 0, 0 or so), then enter those values outside of playmode.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 9 years agoAnonymous
- 1 year ago
- 2 years ago