From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m (Removed state)
m (Fix)
Line 1: Line 1:
| Description = Passed as argument of the [[SEnts/Events/PhysicsCollide|PhysicsCollide]] event.
| Description = Passed as argument of the [[Events/Entity/PhysicsCollide|ENT:PhysicsCollide]] event.
| Fields =
| Fields =
{{StructureField|Vector|HitPos|The collisions position}}
{{StructureField|Vector|HitPos|The collisions position}}

Revision as of 21:18, 4 November 2012

Passed as argument of the ENT:PhysicsCollide event.

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