PhysObj.SetVelocity

From GMod Wiki

Jump to: navigation, search
Function
Syntax PhysObj:SetVelocity( Vector Velocity )
Description:
Sets the physobjects speed to the world Vector.
Returns: nil
In Object: PhysObj
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=PhysObj.SetVelocity]PhysObj.SetVelocity [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionSend the Entity toward the y-axis.
Used onNewerShared.png
Code
phys:SetVelocity(Vector(0,10,0))
OutputWill move the Entity towards y(for an infinite amount of time).
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox