Forum Discussion
waynecochran
5 months agoProtege
Where anatomically is the HEAD joint
Not much detail here: https://developers.meta.com/horizon/reference/spatial-sdk/v0.7.0/root/com.meta.spatial.toolkit/body-joint/h-e-a-d Is it directly above where the spine meets the skull and behi...
Bulkywallnut
4 months agoMeta Employee
Hi!
The recommended way to get users head position for placing screens is via the AvatarAttachment component.
You can get the local head pose like so:
// Function to get the pose of the user's head
fun getHeadPose(): Pose {
val head =
Query.where { has(AvatarAttachment.id) }
.filter { isLocal() and by(AvatarAttachment.typeData).isEqualTo("head") }
.eval()
.first()
return head.getComponent<Transform>().transform
}
waynecochran
4 months agoProtege
Yes, I have that exact code. But where is the head on the human body exactly? Is it the C1 vertebrae? Center of skull? midpoint between eyes?
- Bulkywallnut3 months agoMeta Employee
Hi,
It is the location of the headset in 3D Space.
For rendering purposes, it is also the midpoint between both eyes.
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
- 3 years ago
- 4 years ago
- 8 years agoAnonymous
- 11 months ago
- 12 years ago