Difference between revisions of "Flying"

Jump to navigation Jump to search
1 byte added ,  02:07, 30 December 2011
m
typo - missing space in code
imported>8asrun6aer
m (replacing ascension/descension formulas with better math, and getting rid of speed penalties for diving vs rising to present just a very basic flight script)
imported>8asrun6aer
m (typo - missing space in code)
Line 220: Line 220:
; Set up/down velocity adjusting for gravity's influence and player's pitch
; Set up/down velocity adjusting for gravity's influence and player's pitch
set cstmZGravityModifyer to ( ( GetLocalGravity z ) / ( 21 + ( 1 / 3 ) ) ) * cstmSecondsPassed ; see GetLocalGravity elderscrolls.com article for this formula
set cstmZGravityModifyer to ( ( GetLocalGravity z ) / ( 21 + ( 1 / 3 ) ) ) * cstmSecondsPassed ; see GetLocalGravity elderscrolls.com article for this formula
set cstmZVelocity to (sin cstmPitch * cstmSpeed ) + cstmZGravityModifyer
set cstmZVelocity to ( sin cstmPitch * cstmSpeed ) + cstmZGravityModifyer


; player essentially "falls" to their new x,y,z coords
; player essentially "falls" to their new x,y,z coords
Anonymous user

Navigation menu