diff options
Diffstat (limited to 'src/poser.c')
-rw-r--r-- | src/poser.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/poser.c b/src/poser.c index ea5812e..9a0de24 100644 --- a/src/poser.c +++ b/src/poser.c @@ -4,6 +4,9 @@ #include <stdio.h> #include <survive.h> +#define _USE_MATH_DEFINES // for C +#include <math.h> + void PoserData_poser_raw_pose_func(PoserData *poser_data, SurviveObject *so, uint8_t lighthouse, SurvivePose *pose) { if (poser_data->rawposeproc) { poser_data->rawposeproc(so, lighthouse, pose, poser_data->userdata); @@ -51,7 +54,7 @@ void PoserData_lighthouse_pose_func(PoserData *poser_data, SurviveObject *so, ui ApplyPoseToPose(&lighthouse2obj, &arb2object, &lighthouse2arb); // Now find the space with the same origin, but rotated so that gravity is up - SurvivePose lighthouse2objUp = {}, object2objUp = {}; + SurvivePose lighthouse2objUp = {0}, object2objUp = {0}; if (quatmagnitude(so->activations.accel)) { quatfrom2vectors(object2objUp.Rot, so->activations.accel, up); } else { |