You might be making a game or a crazy nav piece that requires the use of hit detection. Papervision comes with a native HitTestObject method that allows you to easily detect if an object is intersecting another object.
//Usage...
mySphere.hitTestObject(myOtherSphere); //returns true or false
The concept is simple, if one objects bounding box intersects another objects bounding box, then the hitTestObject method will return true.
Example: click here
Flash Source: click here
Flex Source: click here
skip to main |
skip to sidebar
Jim Foley's Brain. Flex, Flash, Papervision 3D, Swift 3D and other cool stuff.
Back on top ^
created by Nuvio | Webdesign
MAD VERTICES © 2008 Ken ahlin | Converted to XML Blogger Template by ThemeLib
How does this work with DAE files? I tried simply substituting the generated spheres with Collada objects but it broke.
First thing to run across my brain is, did you swap the material with a materialsList object? and so on...
hey jim. i need some help with hittesting.. is there anyway we can find the exact point where hittest has taken place?
Exact point of hitTest can be defined trough HitTestPoint(x,y,z)