Entity.GetVelocity
From GMod Wiki
Function | |
Syntax | Entity:GetVelocity( ) |
Description: | |
Retrieves the velocity of an entity. | |
Returns: | Vector |
In Object: | Entity |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.GetVelocity]Entity.GetVelocity [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- If the movetype of the entity is MOVETYPE_VPHYSICS (aka, if the entity uses physics simulations) you need to use :GetVelocity on the PHYSICS object of the entity.
- If the object is at rest, the velocity will be a vector equal to Vector(0,0,0).