mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
[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:
parent
1859ff233d
commit
7c07118541
1 changed files with 3 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue