diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-05-16 10:51:48 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-05-16 10:51:48 +0200 |
commit | d7e1d8165a4d8c7bb559cb00b79f9567d0c4ab6e (patch) | |
tree | 6e492124b6901b5bd79649dae37b1991c896bcf2 /logic/tracker.cpp | |
parent | a9ddb1242181032c549bcac7341e38cb2ee0bb73 (diff) |
logic: remove height in "dynamic neck"
It doesn't help any. Leave the depth only.
Diffstat (limited to 'logic/tracker.cpp')
-rw-r--r-- | logic/tracker.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/logic/tracker.cpp b/logic/tracker.cpp index 48a50d80..1002932f 100644 --- a/logic/tracker.cpp +++ b/logic/tracker.cpp @@ -284,18 +284,18 @@ void Tracker::logic() if (s.neck_enable) { - double ny = s.neck_y, nz = -s.neck_z; + double nz = -s.neck_z; - if (ny != 0 || nz != 0) + if (nz != 0) { const rmat R = euler_to_rmat( euler_t(value(Yaw) * d2r, value(Pitch) * d2r, value(Roll) * d2r)); - euler_t xyz(0, ny, nz); + euler_t xyz(0, 0, nz); t_compensate(R, xyz, xyz, false, false, false); neck(TX) = xyz(TX); - neck(TY) = xyz(TY) - ny; + neck(TY) = xyz(TY); neck(TZ) = xyz(TZ) - nz; } } |