diff options
author | Tim Angus <tim@ngus.net> | 2001-07-01 17:27:31 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2001-07-01 17:27:31 +0000 |
commit | 65be9fc26e99a909d0b40ccfa5ba398adee034c4 (patch) | |
tree | 37a49aa8658b01a13f931d89aa1bd0ef2860e6d6 /src/game/g_buildable.c | |
parent | 16f1b87d4345d5d5d331ea45e65588ce32d01573 (diff) |
Changed jounce->jerk
Diffstat (limited to 'src/game/g_buildable.c')
-rw-r--r-- | src/game/g_buildable.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c index c4db0d34..cc94bbce 100644 --- a/src/game/g_buildable.c +++ b/src/game/g_buildable.c @@ -366,7 +366,7 @@ qboolean hdef1_trackenemy( gentity_t *self ) float distanceToTarget = HDEF1_RANGE; float timeTilImpact; vec3_t halfAcceleration; - vec3_t thirdJounce; + vec3_t thirdJerk; int i; VectorSubtract( self->enemy->s.pos.trBase, self->s.pos.trBase, dirToTarget ); @@ -379,8 +379,8 @@ qboolean hdef1_trackenemy( gentity_t *self ) VectorSubtract( dirToTarget, self->s.pos.trBase, dirToTarget ); #endif - VectorScale( self->enemy->acceleration, 0.5f, halfAcceleration ); - VectorScale( self->enemy->jounce, 0.33333f, thirdJounce ); + VectorScale( self->enemy->acceleration, 1.0f / 2.0f, halfAcceleration ); + VectorScale( self->enemy->jerk, 1.0f / 3.0f, thirdJerk ); //O( time ) - worst case O( time ) = 250 iterations for( i = 0; ( i * HDEF1_PROJSPEED ) / 1000.0f < distanceToTarget; i++ ) |