[mathlib] Clean up AngleVectors comment

I finally spent the time to work out what it was trying to say. Still
not sure it's clear, but what is clear is that there was probably some
disagreement at Id about the orientation of the world.
This commit is contained in:
Bill Currie 2022-03-01 14:52:45 +09:00
parent 1859ff233d
commit 7c07118541

View file

@ -504,15 +504,13 @@ BoxOnPlaneSide (const vec3_t emins, const vec3_t emaxs, plane_t *p)
#endif
/*
FIXME these comments are a confused mess (the code is fine)
angles is a left(?) handed system: 'pitch yaw roll' with x (pitch) axis to
the right, y (yaw) axis up and z (roll) axis forward.
the math in AngleVectors has the entity frame as left handed with x
The math in AngleVectors has the entity frame as left handed with x
(forward) axis forward, y (right) axis to the right and z (up) up. However,
the world is a right handed system with x to the right, y forward and
z up.
the world is a right handed system with x forward, y to the left and
z up, thus the negation for right.
pitch =
cp 0 -sp