From afb06bd44b4b84b06e9b3bcbabecfcd1891d59c5 Mon Sep 17 00:00:00 2001 From: epoch Date: Tue, 11 Feb 2020 23:18:06 -0600 Subject: group-wide rotations now happen before the group gets translated --- src/hackvr.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/hackvr.c') diff --git a/src/hackvr.c b/src/hackvr.c index 5209376..ec8a5da 100644 --- a/src/hackvr.c +++ b/src/hackvr.c @@ -531,6 +531,9 @@ int hackvr_handler(char *line) { global.group_rot[i]->r.x=(degrees){0};//only set these if new. global.group_rot[i]->r.y=(degrees){0}; global.group_rot[i]->r.z=(degrees){0}; + global.group_rot[i]->p.x=0;//why were these not set before? + global.group_rot[i]->p.y=0; + global.group_rot[i]->p.z=0; } } if(len > 4) { //if we have > 4 we're doing relative movement -- cgit v1.2.3