GetAngularVelocity (script event)

From modwiki

Jump to: navigation, search

Description

Gets the current angular velocity of this entity. The angular velocity of a physics object is a vector that passes through the center of mass. The direction of this vector defines the axis of rotation and the magnitude defines the rate of rotation about the axis in radians per second.

Usage

In your script type...

vector getAngularVelocity()

Parameters

This script event does not accept parameters.

Examples

 
velocity = $my_entity.getAngularVelocity();

Notes

This script event returns the angular velocity as a vector.


Personal tools
Main