summaryrefslogtreecommitdiffhomepage
path: root/logic/tracker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'logic/tracker.cpp')
-rw-r--r--logic/tracker.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/logic/tracker.cpp b/logic/tracker.cpp
index 25e067a7..332828a9 100644
--- a/logic/tracker.cpp
+++ b/logic/tracker.cpp
@@ -281,15 +281,16 @@ void Tracker::logic()
euler_t neck, rel;
+ if (s.neck_enable)
{
double ny = s.neck_y, nz = -s.neck_z;
if (ny != 0 || nz != 0)
{
const rmat R = euler_to_rmat(
- euler_t(value(Yaw) * d2r,
- value(Pitch) * d2r,
- value(Roll) * d2r));
+ euler_t(value(Yaw) * d2r,
+ value(Pitch) * d2r,
+ value(Roll) * d2r));
euler_t xyz(0, ny, nz);
t_compensate(R, xyz, xyz, false, false, false);
neck(TX) = xyz(TX);