Papervision3D - distanceTo()


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

Check the distance between two objects in 3D space


Copy this code and paste it in your HTML
  1. //returns the distance between the two objects.
  2. trace(myFirstObject.distanceTo(myOtherObject));

URL: http://www.madvertices.com/2008/10/distanceto-simple-but-nimble.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.