50 likes | 95 Views
Lab 5 Collision Detection. Prasan Samtani psamtani@usc.edu. WARNING : LAUGHING AT MY ART WILL QUALIFY YOU FOR AN AUTOMATIC ‘F’. Sphere Plane Collision. Review:
E N D
Lab 5Collision Detection Prasan Samtani psamtani@usc.edu WARNING : LAUGHING AT MY ART WILL QUALIFY YOU FOR AN AUTOMATIC ‘F’
Sphere Plane Collision • Review: • The distance between a sphere and a plane is N.P - D, where N is the plane normal and P is the vector from the origin to the centre of the sphere
Collision Response • Collision Response refers to the actions that take place after a collision has been detected: • A punch to the face might blow up an enemy in an outrageously stupid game • For the purposes of this lab, no response is required • However, I seek to tempt you with extra credit ;)