Garry's Mod Wiki

GM:OnCrazyPhysics

  GM:OnCrazyPhysics( Entity ent, PhysObj physobj )

Description

Called when the crazy physics detection detects an entity with crazy physics, i.e. position being far outside of the map, velocities being near or at infinity, etc. The primary reason for this system is to prevent program crashes in physics engine.

Arguments

1 Entity ent
The entity that was detected as crazy
2 PhysObj physobj
The physics object that is going crazy