Garry's Mod Wiki

PhysObj:OutputDebugInfo

PhysObj:OutputDebugInfo()

Description

Prints debug info about the state of the physics object to the console.

Example

Outputs physics info about the entity the player is looking at to the console.

Entity(1):GetEyeTrace().Entity:GetPhysicsObject():OutputDebugInfo()
Output:
----------------- Object: models/props_borealis/bluebarrel001.mdl Mass: 60.0 (inv 0.017) Inertia: 8.69, 8.69, 2.46 (inv 0.115, 0.115, 0.406) Velocity: 0.00, 0.00, -0.00 Ang Velocity: 0.00, 0.00, -0.00 Damping 0.00 linear, 0.00 angular Linear Drag: 0.02, 0.01, 0.01 (factor 1.00) Angular Drag: 0.01, 0.02, 0.01 (factor 1.00) attached to 5 controllers 4) sys:friction 3) sys:friction 2) sys:friction 1) vphysics:drag 0) sys:gravity State: Asleep, Collision Enabled, Motion Enabled, Flags 1127 (game 0000, index 0) Material: plastic_barrel : density(500.0), thickness(0.25), friction(0.80), elasticity(0.01) CollisionModel: Compact Surface: 1 convex pieces no outer hull

Page Links


Special Pages


Wikis

?

Render Time: 91ms

DB GetPage 59
Generate Html 2
SaveChanges (1) 13
Render Body 0
Render Sidebar 15