SetLinearVelocity (script event)

Game class

This event operates on an instance of the game class type {{{gameclass}}}

Description

Sets the current linear velocity of this entity in units per second.

Usage

void setLinearVelocity( vector velocity )

Parameters

  • [velocity] - The velocity to apply to this entity.

Examples

 
$my_entity.setLinearVelocity('12 98 54');

Notes

This script event does not return any values.

The linear velocity of a physics object is a vector that defines the translation of the center of mass in units per second.