Add debug options:
- Log driver version when starting - Add debug menu to offset the controller mesh positions/orientations in the lobby
This commit is contained in:
@@ -653,8 +653,8 @@ std::vector<imgui_context::controller_state> imgui_context::read_controllers_sta
|
||||
if (auto location = application::locate_controller(ctrl.aim, world, display_time))
|
||||
{
|
||||
new_state.active = true;
|
||||
new_state.aim_position = location->first;
|
||||
new_state.aim_orientation = location->second;
|
||||
new_state.aim_position = location->first + glm::mat3_cast(location->second * ctrl.offset.second) * ctrl.offset.first;
|
||||
new_state.aim_orientation = location->second * ctrl.offset.second;
|
||||
|
||||
if (ctrl.trigger)
|
||||
{
|
||||
|
||||
@@ -60,6 +60,8 @@ public:
|
||||
struct controller
|
||||
{
|
||||
XrSpace aim;
|
||||
std::pair<glm::vec3, glm::quat> offset;
|
||||
|
||||
XrAction trigger; // XR_ACTION_TYPE_FLOAT_INPUT
|
||||
XrAction squeeze; // XR_ACTION_TYPE_FLOAT_INPUT
|
||||
XrAction scroll; // XR_ACTION_TYPE_VECTOR2F_INPUT
|
||||
|
||||
Reference in New Issue
Block a user