Xonotic
physics.qc File Reference
#include "physics.qh"
+ Include dependency graph for physics.qc:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void com_phys_interpolate (entity it, float a)
 

Variables

bool autocvar_xon_com_phys_interpolate = true
 

Function Documentation

◆ com_phys_interpolate()

void com_phys_interpolate ( entity  it,
float  a 
)

Definition at line 5 of file physics.qc.

References autocvar_xon_com_phys_interpolate.

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 }
bool autocvar_xon_com_phys_interpolate
Definition: physics.qc:3

Variable Documentation

◆ autocvar_xon_com_phys_interpolate

bool autocvar_xon_com_phys_interpolate = true

Definition at line 3 of file physics.qc.

Referenced by com_phys_interpolate().