CollisionData Structure

From Garry's Mod
Revision as of 14:54, 3 August 2012 by Wizzy (Talk | contribs)
Jump to: navigation, search
Passed as argument of the PhysicsCollide event.



Type Name Description
Shared Vector

HitPos

Default: The collisions position

Shared Entity

HitEntity

Default: The other collision entities

Shared Vector

OurOldVelocity

Default: The entities velocity before the collision

Shared PhysObj

HitObject

Default: The physics that collided

Shared number

DeltaTime

Default: Time since the last collision

Shared Vector

TheirOldVelocity

Default: Speed of the other entity before the collision

Shared number

Speed

Default: The absolute speed of the entity before the collision

Shared Vector

HitNormal

Default: Normal of the surface that hit the other entity

Personal tools
Navigation