Structures/CollisionData

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m
Line 5: Line 5:
 
{{StructureField|Entity|HitEntity|The other collision entities}}
 
{{StructureField|Entity|HitEntity|The other collision entities}}
 
{{StructureField|Vector|OurOldVelocity|The entities velocity before the collision}}
 
{{StructureField|Vector|OurOldVelocity|The entities velocity before the collision}}
{{StructureField|PhysObj|HitObject|The physics that collided}}
+
{{StructureField|PhysObj|HitObject|The physics that collided with us}}
 
{{StructureField|number|DeltaTime|Time since the last collision}}
 
{{StructureField|number|DeltaTime|Time since the last collision}}
 
{{StructureField|Vector|TheirOldVelocity|Speed of the other entity before the collision}}
 
{{StructureField|Vector|TheirOldVelocity|Speed of the other entity before the collision}}
 
{{StructureField|number|Speed|The absolute speed of the entity before the collision}}
 
{{StructureField|number|Speed|The absolute speed of the entity before the collision}}
 
{{StructureField|Vector|HitNormal|Normal of the surface that hit the other entity}}
 
{{StructureField|Vector|HitNormal|Normal of the surface that hit the other entity}}
 +
{{StructureField|PhysObj|PhysObject|Our physics object that collided the HitObject?}}
 
}}
 
}}

Revision as of 21:16, 20 August 2014

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 with us

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

PhysObj PhysObject

Our physics object that collided the HitObject?

Personal tools
Navigation