This site has been permanently archived. The content on this site was last updated in 2019.
Stay organized with collections
Save and categorize content based on your preferences.
gvr_recenter_event_data
#include <gvr_types.h>
Event data associated with a GVR_EVENT_RECENTER event, which indicates head tracking recentering.
Summary
(Controller recentering is signaled separately through gvr_controller_state_get_recentered().) The client may wish to handle this event to provide custom recentering logic.
Public attributes
recenter_event_flags
gvr_flags gvr_recenter_event_data::recenter_event_flags
recenter_type
int32_t gvr_recenter_event_data::recenter_type
gvr_mat4f gvr_recenter_event_data::start_space_from_tracking_space_transform
The new transform that maps from headset's "sensor" space to the recentered "start" space.
This transform can also be retrieved by querying for the GVR_PROPERTY_RECENTER_TRANSFORM property.
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-09 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-09 UTC."],[[["\u003cp\u003e\u003ccode\u003egvr_recenter_event_data\u003c/code\u003e provides information about head tracking recentering events, separate from controller recentering.\u003c/p\u003e\n"],["\u003cp\u003eThis event allows custom recentering logic implementation within the client.\u003c/p\u003e\n"],["\u003cp\u003eData includes event flags, recenter type, and a transform matrix for sensor to start space mapping.\u003c/p\u003e\n"],["\u003cp\u003eThe transform matrix, mapping headset sensor space to recentered start space, is also accessible through the \u003ccode\u003eGVR_PROPERTY_RECENTER_TRANSFORM\u003c/code\u003e property.\u003c/p\u003e\n"]]],["The `gvr_recenter_event_data` indicates head tracking recentering, distinct from controller recentering. It includes `recenter_event_flags`, `recenter_type`, and `start_space_from_tracking_space_transform`. The transform maps the headset's \"sensor\" space to the recentered \"start\" space, and is also retrievable through the GVR_PROPERTY_RECENTER_TRANSFORM property. Clients may implement custom logic upon receiving this event.\n"],null,["# gvr_recenter_event_data Struct Reference\n\ngvr_recenter_event_data\n=======================\n\n`#include \u003cgvr_types.h\u003e`\n\nEvent data associated with a GVR_EVENT_RECENTER event, which indicates head tracking recentering.\n\nSummary\n-------\n\n(Controller recentering is signaled separately through [gvr_controller_state_get_recentered()](/vr/reference/android-ndk/group/controller#group___controller_1ga0c2955ccc31961abe982f883085efac4).) The client may wish to handle this event to provide custom recentering logic.\n\n| ### Public attributes ||\n|-------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [recenter_event_flags](#structgvr__recenter__event__data_1aeaf36d92a6ad8144641221f0a799ce33) | `gvr_flags` |\n| [recenter_type](#structgvr__recenter__event__data_1a98f2a3eef4fdea3123beb1e7fbfbc18e) | `int32_t` |\n| [start_space_from_tracking_space_transform](#structgvr__recenter__event__data_1aeacb9b6dcb3a6cb71511355ef88be8da) | [gvr_mat4f](/vr/reference/android-ndk/struct/gvr-mat4f#structgvr__mat4f) The new transform that maps from headset's \"sensor\" space to the recentered \"start\" space. |\n\nPublic attributes\n-----------------\n\n### recenter_event_flags\n\n```scdoc\ngvr_flags gvr_recenter_event_data::recenter_event_flags\n``` \n\n### recenter_type\n\n```carbon\nint32_t gvr_recenter_event_data::recenter_type\n``` \n\n### start_space_from_tracking_space_transform\n\n```scdoc\ngvr_mat4f gvr_recenter_event_data::start_space_from_tracking_space_transform\n``` \nThe new transform that maps from headset's \"sensor\" space to the recentered \"start\" space.\n\nThis transform can also be retrieved by querying for the GVR_PROPERTY_RECENTER_TRANSFORM property."]]