You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Rework XR positional trackers
This commit is contained in:
@@ -46,6 +46,7 @@ class WebXRInterfaceJS : public WebXRInterface {
|
||||
|
||||
private:
|
||||
bool initialized;
|
||||
Ref<XRPositionalTracker> head_tracker;
|
||||
|
||||
String session_mode;
|
||||
String required_features;
|
||||
@@ -53,7 +54,9 @@ private:
|
||||
String requested_reference_space_types;
|
||||
String reference_space_type;
|
||||
|
||||
// TODO maybe turn into a vector to support more then 2 controllers...
|
||||
bool controllers_state[2];
|
||||
Ref<XRPositionalTracker> controllers[2];
|
||||
Size2 render_targetsize;
|
||||
|
||||
Transform3D _js_matrix_to_transform(float *p_js_matrix);
|
||||
|
||||
Reference in New Issue
Block a user