Papervision3D - hitTestObject


/ Published in: ActionScript 3
Save to your folder(s)

Test to see if two objects are touching...


Copy this code and paste it in your HTML
  1. // just replace the objects
  2. myFirstObject.hitTestObject(myOtherObject); //returns true or false

URL: http://www.madvertices.com/2008/10/simple-papervision-hittest-detection.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.