summaryrefslogtreecommitdiff
path: root/src/physics.c
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2020-06-03 04:17:40 -0500
committerepoch <epoch@hacking.allowed.org>2020-06-03 04:17:40 -0500
commitd81cae390c480f689cb2bd2dd6f1f48fc3cf0224 (patch)
treeb1251ef26674b3243fed8ea9d7bd4da6f5d59891 /src/physics.c
parentb2eb287d79dac568e2f5104424720ee8ffa618b5 (diff)
downloadhackvr-d81cae390c480f689cb2bd2dd6f1f48fc3cf0224.tar.gz
hackvr-d81cae390c480f689cb2bd2dd6f1f48fc3cf0224.zip
mass rename of group_rot to group_rel
Diffstat (limited to 'src/physics.c')
-rw-r--r--src/physics.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/physics.c b/src/physics.c
index 2818587..22c6cc8 100644
--- a/src/physics.c
+++ b/src/physics.c
@@ -18,15 +18,16 @@ rotation-relative-x,rry,rrz
*/
int apply_physics() {
//int i;
- //we can just assume things will float if they don't have a group_rot
+ //we can just assume things will float if they don't have a group_rel
/*
- for(i=0;global.group_rot[i] && i < MAXSHAPES;i++) {//this should be applied to group_rots
- if(!strcmp(global.group_rot[i]->id,global.user)) {//only apply gravity to the camera.
- global.group_rot[i]->v.y += (GRAVITY / (float)(global.lps?global.lps:1)); //heh. "fps" needs a headless equivalent now.
- global.group_rot[i]->p.y -= global.group_rot[i]->v.y;
- if(global.group_rot[i]->p.y < MINIMUM_Y) {//we've moved so we need to output a move command?
- global.group_rot[i]->v.y=0;
- global.group_rot[i]->p.y=MINIMUM_Y;
+ //this needs a big rewrite anyway
+ for(i=0;global.group_rel[i] && i < MAXSHAPES;i++) {//this should be applied to group_rels
+ if(!strcmp(global.group_rel[i]->id,global.user)) {//only apply gravity to the camera.
+ global.group_rel[i]->v.y += (GRAVITY / (float)(global.lps?global.lps:1)); //heh. "fps" needs a headless equivalent now.
+ global.group_rel[i]->p.y -= global.group_rel[i]->v.y;
+ if(global.group_rel[i]->p.y < MINIMUM_Y) {//we've moved so we need to output a move command?
+ global.group_rel[i]->v.y=0;
+ global.group_rel[i]->p.y=MINIMUM_Y;
}
}
}*/