Difference between revisions of "Talk:SetVelocity"

Jump to navigation Jump to search
575 bytes added ,  12:24, 6 September 2011
explanation of revert\
imported>DragoonWraith
imported>DragoonWraith
(explanation of revert\)
Line 1: Line 1:
== Velocity, Friction, and Gravity ==
Velocity has to be applied every frame in order to work. I ran into a few problems trying to move Idle NPCs. It seems impossible to overcome the initial friction but moving them few units higher above where they are standing before trying to apply velocity should do the trick:
Velocity has to be applied every frame in order to work. I ran into a few problems trying to move Idle NPCs. It seems impossible to overcome the initial friction but moving them few units higher above where they are standing before trying to apply velocity should do the trick:


Line 26: 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)
=== Non-Z Gravity ===
You can set gravity in non-vertical directions by using [[SetLocalGravityVector]], in which case your code using SetVelocity would have to account for the non-Z components of gravity as well. Thus, I've reverted Mitchalek's edit: "each" was correct.<br/>
[[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>]] 13:24, 6 September 2011 (EDT)


== Underwater? ==
== Underwater? ==

Navigation menu