Rotscrnang: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
Rewrite. Loosely based on look_ang.
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]]

Revision as of 13:43, 11 August 2011

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.