1
edit
Changes
→CollisionContact
};
</pre>
; Vector pos : The world space location of the point of collision.
; Vector normal : A world space unit vector perpendicular to the collision surface. This always points at g2.
; float depth : The depth of penetration between the geometries.
; iCollisionGeometry* g1 : The first geometry involved in this collision.
; iCollisionGeometry* g2 : The second geometry involved in this collision.
With this information, the computer can be programmed to respond appropriately to any number of collisions :)
== Listening For Collisions ==