CollisionData Structure

From Garry's Mod
Revision as of 17:07, 31 August 2013 by Robotboy655 (Talk | contribs)
Jump to: navigation, search
Passed as argument of ENTITY:PhysicsCollide.



Type Name Description
Vector HitPos

The collisions position

Entity HitEntity

The other collision entities

Vector OurOldVelocity

The entities velocity before the collision

PhysObj HitObject

The physics that collided

number DeltaTime

Time since the last collision

Vector TheirOldVelocity

Speed of the other entity before the collision

number Speed

The absolute speed of the entity before the collision

Vector HitNormal

Normal of the surface that hit the other entity

Personal tools
Navigation