Structures/CollisionData

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m (Fixed link)
m (Moved to structure template)
Line 1: Line 1:
{{Class
+
{{Structure
 
| Description = Passed as argument of the [[SEnts/Events/PhysicsCollide|PhysicsCollide]] event.
 
| Description = Passed as argument of the [[SEnts/Events/PhysicsCollide|PhysicsCollide]] event.
 
| Fields =
 
| Fields =
{{ClassField|Shared|Vector|CollisionData|HitPos}}
+
{{StructureField|Shared|Vector|CollisionData|HitPos}}
{{ClassField|Shared|Entity|CollisionData|HitEntity}}
+
{{StructureField|Shared|Entity|CollisionData|HitEntity}}
{{ClassField|Shared|Vector|CollisionData|OurOldVelocity}}
+
{{StructureField|Shared|Vector|CollisionData|OurOldVelocity}}
{{ClassField|Shared|Physobj|CollisionData|HitObject}}
+
{{StructureField|Shared|Physobj|CollisionData|HitObject}}
{{ClassField|Shared|number|CollisionData|DeltaTime}}
+
{{StructureField|Shared|number|CollisionData|DeltaTime}}
{{ClassField|Shared|Vector|CollisionData|TheirOldVelocity}}
+
{{StructureField|Shared|Vector|CollisionData|TheirOldVelocity}}
{{ClassField|Shared|number|CollisionData|Speed}}
+
{{StructureField|Shared|number|CollisionData|Speed}}
{{ClassField|Shared|Vector|CollisionData|HitNormal}}
+
{{StructureField|Shared|Vector|CollisionData|HitNormal}}
 
}}
 
}}

Revision as of 10:08, 2 August 2012

Passed as argument of the PhysicsCollide event.



Type Name Description
Shared Vector

CollisionData

Default: HitPos

Shared Entity

CollisionData

Default: HitEntity

Shared Vector

CollisionData

Default: OurOldVelocity

Shared Physobj

CollisionData

Default: HitObject

Shared number

CollisionData

Default: DeltaTime

Shared Vector

CollisionData

Default: TheirOldVelocity

Shared number

CollisionData

Default: Speed

Shared Vector

CollisionData

Default: HitNormal

Personal tools
Navigation