pico: fix controller position

This commit is contained in:
Nevyn Bengtsson 2020-08-17 14:33:56 +02:00
parent d5e26a72d1
commit 101cd38a7e
1 changed files with 1 additions and 0 deletions

View File

@ -310,6 +310,7 @@ static bool pico_getPose(Device device, float* position, float* orientation) {
uint32_t index = device - DEVICE_HAND_LEFT;
vec3_init(position, state.controllers[index].position);
quat_init(orientation, state.controllers[index].orientation);
position[1] += state.offset;
return state.controllers[index].active;
}