Garry's Mod Wiki

Revision Difference

EFFECT:PhysicsCollide#526388

<function name="PhysicsCollide" parent="EFFECT" type="hook"> <ishook>yes</ishook> <description>Called when the effect collides with anything.</description> <realm>Client</realm> <predicted>No</predicted> <args> <arg name="colData" type="table">Information regarding the collision. See <page>Structures/CollisionData</page></arg> <arg name="collider" type="PhysObj">The physics object of the entity that collided with the effect.</arg> <arg name="OurSurfaceProps"></arg>⤶ <arg name="TheirSurfaceProps"></arg>⤶ <arg name="HitSpeed" type="number"></arg>⤶ <arg name="OurNewVelocity" type="Vector"></arg>⤶ <arg name="TheirNewVelocity" type="Vector"></arg>⤶ <arg name="OurOldAngularVelocity" type="Vector"></arg>⤶ <arg name="TheirOldAngularVelocity" type="Vector"></arg>⤶ </args> </function>