aboutsummaryrefslogtreecommitdiff
path: root/tools/lighthousefind_tori/main.c
diff options
context:
space:
mode:
authorcnlohr <lohr85@gmail.com>2017-02-16 15:48:07 -0500
committercnlohr <lohr85@gmail.com>2017-02-16 15:48:07 -0500
commitf88070d0bd75826025758392af2805659fd1d380 (patch)
tree003c7e9fb459f4622755084466e3d1072bda87e7 /tools/lighthousefind_tori/main.c
parent2e5d0355da2376f27dcbe0cc6d04b737145ac853 (diff)
parent5552609f553290d92ed4209b4ce4f9040598e2bb (diff)
downloadlibsurvive-f88070d0bd75826025758392af2805659fd1d380.tar.gz
libsurvive-f88070d0bd75826025758392af2805659fd1d380.tar.bz2
Merge branch 'master' of https://github.com/cnlohr/libsurvive
Diffstat (limited to 'tools/lighthousefind_tori/main.c')
-rw-r--r--tools/lighthousefind_tori/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/lighthousefind_tori/main.c b/tools/lighthousefind_tori/main.c
index aa51448..ee56b37 100644
--- a/tools/lighthousefind_tori/main.c
+++ b/tools/lighthousefind_tori/main.c
@@ -51,6 +51,9 @@ static void runTheNumbers()
to->sensor[sensorCount].point.x = hmd_points[i * 3 + 0];
to->sensor[sensorCount].point.y = hmd_points[i * 3 + 1];
to->sensor[sensorCount].point.z = hmd_points[i * 3 + 2];
+ to->sensor[sensorCount].normal.x = hmd_norms[i * 3 + 0];
+ to->sensor[sensorCount].normal.y = hmd_norms[i * 3 + 1];
+ to->sensor[sensorCount].normal.z = hmd_norms[i * 3 + 2];
to->sensor[sensorCount].theta = hmd_point_angles[i * 2 + 0] + LINMATHPI / 2;
to->sensor[sensorCount].phi = hmd_point_angles[i * 2 + 1] + LINMATHPI / 2;
sensorCount++;