Difference between revisions of "Talk:FArrowGravityMult"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Cygnus
 
imported>Mitchalek
(Relation between FArrowGravity... settings and arrow acceleration)
 
Line 1: Line 1:
Yes, it seems that the default value is 0.002 in the CS.
Yes, it seems that the default value is 0.002 in the CS.
----
This setting seems to be in corelation with [[FArrowGravityBase]] and acts like a scale between max gravity effect to no gravity. When [[FArrowGravityBase]] is set to 1 then [[FArrowGravityMult]] has range of 0 to 0.24 (0.24 will negate gravity). To get the scale max range you multiply 0.24 with current gravity base so if we use [[FArrowGravityBase]] default value of 0.3 that would be 0.24 * 0.3 = 0.0072, new scale is now 0 - 0.0072.
I was researching acceleration due to gravity on arrows because I'm making mod for auto-aiming but I can't figure the formula and where [[FArrowGravityMult]] fits in. I probed arrows on different settings and from data I collected and default FArrowGravity... settings it takes 3.065 seconds for arrow to move from 0 to -515.025 Z units (gravity velocity default: GV = -515.025) so arrow acceleration on Z axis due to gravity is GV / 3.065^2 = -54.823575. As long as you don't change any of gravity settings this formula stays the same and you can use OBSE: [[SetLocalGravity]] to change gravity and it will always take same 3.065 secs for arrow to go from 0 to GV. If anyone could figure out the full acceleration formula and how these settings relate to it that would be awesome but for now I have to stick with these constants and keep GS on default values in my mod just in case someone using other mod that change them.
[[User:Mitchalek|Mitchalek]] 05:25, 17 August 2011 (EDT)

Latest revision as of 04:25, 17 August 2011

Yes, it seems that the default value is 0.002 in the CS.


This setting seems to be in corelation with FArrowGravityBase and acts like a scale between max gravity effect to no gravity. When FArrowGravityBase is set to 1 then FArrowGravityMult has range of 0 to 0.24 (0.24 will negate gravity). To get the scale max range you multiply 0.24 with current gravity base so if we use FArrowGravityBase default value of 0.3 that would be 0.24 * 0.3 = 0.0072, new scale is now 0 - 0.0072. I was researching acceleration due to gravity on arrows because I'm making mod for auto-aiming but I can't figure the formula and where FArrowGravityMult fits in. I probed arrows on different settings and from data I collected and default FArrowGravity... settings it takes 3.065 seconds for arrow to move from 0 to -515.025 Z units (gravity velocity default: GV = -515.025) so arrow acceleration on Z axis due to gravity is GV / 3.065^2 = -54.823575. As long as you don't change any of gravity settings this formula stays the same and you can use OBSE: SetLocalGravity to change gravity and it will always take same 3.065 secs for arrow to go from 0 to GV. If anyone could figure out the full acceleration formula and how these settings relate to it that would be awesome but for now I have to stick with these constants and keep GS on default values in my mod just in case someone using other mod that change them. Mitchalek 05:25, 17 August 2011 (EDT)