Difference between revisions of "Body:setAngularVelocity"

m (1 revision: Imported docs from potato.)
Line 1: Line 1:
  
 +
Sets the angular velocity of a Body.
 +
 +
The angular velocity is the ''rate of change of position over time''.
 +
 +
 +
This function will not accumulate anything; any impulses previously applied since the last call to [[World:update]] will be lost.
  
 
== Function ==
 
== Function ==
Line 13: Line 19:
 
* [[parent::Body]]
 
* [[parent::Body]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=}}
+
{{#set:Description=Sets the angular velocity of a Body.
 +
}}

Revision as of 16:17, 14 February 2010

Sets the angular velocity of a Body.

The angular velocity is the rate of change of position over time.


This function will not accumulate anything; any impulses previously applied since the last call to World:update will be lost.

Function

Synopsis

Body:setAngularVelocity( w )

Arguments

number w
The new angular velocity, in radians per second

Returns

Nothing.

See Also