PhysObj.GetEnergy
From GMod Wiki
Revision as of 18:49, 29 May 2010 by Disseminate (Talk | contribs)
| Function | |
| Syntax | PhysObj:GetEnergy( ) |
| Description: | |
| Gets how much energy is in a physobj (seems to be based on velocity and angular velocity). | |
| Returns: | Integer |
| In Object: | PhysObj |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=PhysObj.GetEnergy]PhysObj.GetEnergy [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Gets the current energy of a physics object |
|---|---|
| Used on | |
| Code | local trace = Player:GetEyeTraceNoCursor(); Msg( trace.Entity:GetPhysicsObject():GetEnergy() ); |
| Output | Trace object's energy |