PhysObj.SetVelocity
From GMod Wiki
(Redirected from PhysObj.SetVelocityInstantaneous)
Function | |
Syntax | PhysObj:SetVelocity( Vector Velocity ) |
Description: | |
Sets the physobjects speed to the world Vector. | |
Returns: | nil |
In Object: | PhysObj |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=PhysObj.SetVelocity]PhysObj.SetVelocity [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Send the Entity toward the y-axis. |
---|---|
Used on | |
Code | phys:SetVelocity(Vector(0,10,0)) |
Output | Will move the Entity towards y(for an infinite amount of time). |