Look ang: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
m add wikipedia link for 'yaw'
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
the angle that player is looking, not facing. i.e. when you use the lookleft/right commands.
'''look_ang''' is the offset that is added to the ([http://en.wikipedia.org/wiki/File:Rollpitchyawplain.png yaw] or left-right) viewing angle. In the original game it is in effect when using the "look around shoulder" commands.


Lookleft gradative set the value to -605, while lookright set to 608. After using lookright it will not reset to the default value (zero) but rather to 3.
Negative values offset the camera angle to the left, positive ones to the right.
 
Because the offset is reset towards 0 at a rate proportional to itself (currently hardcoded to one fourth), there is a point where the constant addition per time unit (+- 152, unless overridden by [[EVENT_LOOKLEFT]]/[[EVENT_LOOKRIGHT]]) and the resetting balance each other out. With the hardcoded values, these are -605 and 608, that is, about more than 90 degrees.




[[Category:Player structure members]]
[[Category:Player structure members]]

Latest revision as of 13:44, 11 August 2011

look_ang is the offset that is added to the (yaw or left-right) viewing angle. In the original game it is in effect when using the "look around shoulder" commands.

Negative values offset the camera angle to the left, positive ones to the right.

Because the offset is reset towards 0 at a rate proportional to itself (currently hardcoded to one fourth), there is a point where the constant addition per time unit (+- 152, unless overridden by EVENT_LOOKLEFT/EVENT_LOOKRIGHT) and the resetting balance each other out. With the hardcoded values, these are -605 and 608, that is, about more than 90 degrees.