mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 09:30:35 +00:00
fixed a crash in perspective move
This commit is contained in:
parent
4b3b7fead0
commit
db46f247c5
10
vr.cpp
10
vr.cpp
@ -466,10 +466,12 @@ void move_according_to(vr::ETrackedControllerRole role, bool last, bool cur) {
|
|||||||
if(id >= 0 && id < int(vr::k_unMaxTrackedDeviceCount)) {
|
if(id >= 0 && id < int(vr::k_unMaxTrackedDeviceCount)) {
|
||||||
hyperpoint h;
|
hyperpoint h;
|
||||||
if(in_perspective_v()) {
|
if(in_perspective_v()) {
|
||||||
E4;
|
if(1) {
|
||||||
transmatrix T = (hsm == eHeadset::none ? hmd_at : hmd_ref_at) * vrdata.pose_matrix[id] * sm;
|
E4;
|
||||||
vrhr::be_33(T);
|
transmatrix T = (hsm == eHeadset::none ? hmd_at : hmd_ref_at) * vrdata.pose_matrix[id] * sm;
|
||||||
h = T * point31(0, 0, -0.01);
|
vrhr::be_33(T);
|
||||||
|
h = T * point31(0, 0, -0.01);
|
||||||
|
}
|
||||||
if(last && !cur)
|
if(last && !cur)
|
||||||
movevrdir(h);
|
movevrdir(h);
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user