CollisionData Structure

From Garry's Mod
Revision as of 12:10, 19 May 2016 by Bo98 (Talk | contribs)
Jump to: navigation, search
Passed as argument of ENTITY:PhysicsCollide.

Type Name Description
Vector HitPos

The collision position

Entity HitEntity

The other collision entity

Vector OurOldVelocity

The entity's velocity before the collision

PhysObj HitObject

Other entity's physics object

number DeltaTime

Time since the last collision with this HitEntity

Vector TheirOldVelocity

Speed of the other entity before the collision

number Speed

The speed of the entity before the collision

Vector HitNormal

Normal of the surface that hit the other entity

PhysObj PhysObject

Entity's physics object

Personal tools