Difference between revisions of "Talk:SetVelocity"

Jump to navigation Jump to search
697 bytes added ,  09:27, 31 May 2012
3/64 = ScriptEffectElapsedSeconds?
imported>DragoonWraith
(explanation of revert\)
imported>Machina lucis
(3/64 = ScriptEffectElapsedSeconds?)
 
Line 28: Line 28:
:Also, please sign your comments in Discussion pages by ending with <tt><nowiki>~~~~</nowiki></tt>; that will insert your username and a timestamp. Thanks!
:Also, please sign your comments in Discussion pages by ending with <tt><nowiki>~~~~</nowiki></tt>; that will insert your username and a timestamp. Thanks!
:[[User:DragoonWraith|<span style="font-family: Oblivion; size=2;">D</span>ragoon <span style="font-family: Oblivion; size=2;">W</span>raith]] [[User_talk:DragoonWraith|<span style="font-family: Oblivion; size=2;">TALK</span>]] 19:02, 13 August 2011 (EDT)
:[[User:DragoonWraith|<span style="font-family: Oblivion; size=2;">D</span>ragoon <span style="font-family: Oblivion; size=2;">W</span>raith]] [[User_talk:DragoonWraith|<span style="font-family: Oblivion; size=2;">TALK</span>]] 19:02, 13 August 2011 (EDT)
:It appears to me that 64/3 is merely the average number of script effect updates per second. I use the following code snippet to send an actor skyrocketing at a given velocity (assuming the actor IsInAir already, for example, when it is jumping or falling); I'd appreciate it if someone else can try and see if it works for them too.
<pre>
set zeroVelocity to - (GetLocalGravity Z) * ScriptEffectElapsedSeconds
set velocity to velocity + zeroVelocity
SetVerticalVelocity velocity
</pre>
:If this is true, then Bethesda must be using the most simplified form of the Euler method (the kind I used in high school) for their physics...
:[[User:Machina lucis|machina lucis]] 10:27, 31 May 2012 (EDT)


=== Non-Z Gravity ===
=== Non-Z Gravity ===

Navigation menu