Xonotic
Main Page
Related Pages
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
+
Functions
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
v
w
x
+
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
+
Enumerator
i
m
o
p
r
s
t
+
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Classes
Files
Functions
Variables
Typedefs
Enumerator
Macros
Pages
physics.qc
Go to the documentation of this file.
1
#include "
physics.qh
"
2
3
bool
autocvar_xon_com_phys_interpolate
=
true
;
4
5
void
com_phys_interpolate
(
entity
it,
float
a)
6
{
7
if
(!
autocvar_xon_com_phys_interpolate
) a = 1;
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
}
entity
entity() spawn
physics.qh
com_phys_interpolate
void com_phys_interpolate(entity it, float a)
Definition:
physics.qc:5
autocvar_xon_com_phys_interpolate
bool autocvar_xon_com_phys_interpolate
Definition:
physics.qc:3
ecs
components
physics.qc
Generated on Thu Mar 17 2022 17:26:26 for Xonotic by
1.8.13