Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
physics.qc
Go to the documentation of this file.
1#include "physics.qh"
2
4
5void com_phys_interpolate(entity it, float a)
6{
8 it.origin = it.com_phys_pos_prev * (1 - a) + it.com_phys_pos * a;
9 it.angles = it.com_phys_ang_prev * (1 - a) + it.com_phys_ang * a; // TODO: slerp, not lerp
10}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
bool autocvar_xon_com_phys_interpolate
Definition physics.qc:3
void com_phys_interpolate(entity it, float a)
Definition physics.qc:5