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 signals head tracking recentering events, separate from controller recentering.\u003c/p\u003e\n"],["\u003cp\u003eClients can use this event to implement custom recentering logic.\u003c/p\u003e\n"],["\u003cp\u003eIt includes data like event flags, recenter type, and a transform matrix mapping sensor space to the recentered space.\u003c/p\u003e\n"],["\u003cp\u003eThis transform matrix can also be retrieved using the \u003ccode\u003eGVR_PROPERTY_RECENTER_TRANSFORM\u003c/code\u003e property.\u003c/p\u003e\n"]]],["The `gvr_recenter_event_data` signals head tracking recentering via the `GVR_EVENT_RECENTER` event. This event includes three attributes: `recenter_event_flags` (type `gvr_flags`), `recenter_type` (type `int32_t`), and `start_space_from_tracking_space_transform` (type `gvr_mat4f`). The `start_space_from_tracking_space_transform` defines the new transform mapping the headset's \"sensor\" space to the recentered \"start\" space and can be retrieved via `GVR_PROPERTY_RECENTER_TRANSFORM`. Controller recentering is handled separately. Clients can utilize this event for custom recentering logic.\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().) 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/ios-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."]]