Rotscrnang: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
Jwaffe (talk | contribs)
m removed dead link
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
This controls the angle warping of the screen. To emulate [[LOOKLEFT]], subtract 152 from [[look_ang]], and add 24 to [[rotscrnang]].
Rotscrnang is the [http://en.wikipedia.org/wiki/File:Rollpitchyawplain.png roll] angle, i.e. the rotation around the axis pointing in the viewing direction.
 
Positive values rotate the view counter-clockwise, negative ones rotate it clockwise from the base angle.
 
Because the offset is reset towards 0 at a rate proportional to itself (currently hardcoded to one half), there is a point where the constant addition per time unit (+- 24, unless overridden by EVENT_LOOKLEFT/EVENT_LOOKRIGHT) and the resetting balance each other out.
 
 
'''example:'''
To emulate LOOKLEFT, subtract 152 from [[look_ang]], and add 24 to [[rotscrnang]].


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

Latest revision as of 09:24, 1 June 2014

Rotscrnang is the roll angle, i.e. the rotation around the axis pointing in the viewing direction.

Positive values rotate the view counter-clockwise, negative ones rotate it clockwise from the base angle.

Because the offset is reset towards 0 at a rate proportional to itself (currently hardcoded to one half), there is a point where the constant addition per time unit (+- 24, unless overridden by EVENT_LOOKLEFT/EVENT_LOOKRIGHT) and the resetting balance each other out.


example: To emulate LOOKLEFT, subtract 152 from look_ang, and add 24 to rotscrnang.