Difference between revisions of "SetVelocity"
Jump to navigation
Jump to search
imported>Mitchalek m |
imported>8asrun6aer m |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 19: | Line 19: | ||
* Actors on the ground may be impossible to move due to friction; use [[MoveTo]] or similar to lift them off the ground. | * Actors on the ground may be impossible to move due to friction; use [[MoveTo]] or similar to lift them off the ground. | ||
* Gravity is ''also'' applied to the actor: you must supply a velocity equal to at least <tt>( -([[GetLocalGravity]] ''axis'') / [[Oblivion Units|(21+1/3)]] )</tt> on | * Gravity is ''also'' applied to the actor: you must supply a velocity equal to at least <tt>( -([[GetLocalGravity]] ''axis'') / [[Oblivion Units|(21+1/3)]] )</tt> on each axis in order to cancel it out. | ||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Functions (OBSE)]] | [[Category:Functions (OBSE)]] | ||
[[Category:Functions (OBSE v0020)]] | [[Category:Functions (OBSE v0020)]] | ||
[[Category:Movement Functions]] | |||
[[Category:Physics Functions]] | [[Category:Physics Functions]] | ||
[[Category:Physics Functions (OBSE)]] | [[Category:Physics Functions (OBSE)]] | ||
== See Also == | |||
* [[SetPos]] | |||
* [[MoveTo]] | |||
* [[GetVelocity]] |
Latest revision as of 00:39, 23 December 2011
< [[::Category:Functions|Category:Functions]]
A function added by the Oblivion Script Extender.
Syntax:
(void) SetVelocity xVel:float yVel:float zVel:float
Sets the x, y, and z components of the actor's velocity. The change applies only to the current frame.
Note
- Actors on the ground may be impossible to move due to friction; use MoveTo or similar to lift them off the ground.
- Gravity is also applied to the actor: you must supply a velocity equal to at least ( -(GetLocalGravity axis) / (21+1/3) ) on each axis in order to cancel it out.