Usually in fps shooters ray is used to get hit position . Another method for bullets hit test is CCD ( continuous collision detection ) . It can be used with rays or on it's own . Google for the exact implementation . If I recall right Seb Lee had an example on his blog . Also check JigLib may be it has got built in CCD
Sent from my iPhone On Mar 16, 2011, at 9:02 PM, pokey <[email protected]> wrote: > Hi there, > > I'm new to Away3D, and trying to create an oh so simple little > shooting gallery: it will have a plane with some cubes scattered on > it, and you will use the mouse as a crosshair to fire projectiles at > the cubes, from a vantage point hovering over the plane. > > My hangup is getting the projectile firing, and testing whether it > hits a target (the cubes, or the plane itself). I'll have some > function defining the position of the projectiles as a function of > time and where the crosshairs were aimed when they were released. At > this point, I could just have iterate through every cube (and the > plane) at each frame testing if one of the projectiles has collided > with it. I'm wondering if anyone could suggest a simpler way to > proceed utilizing some Away3D libraries? The getIntersect() method in > Ray.as looks promising, though it's not completely clear to me what > this does (nor can I find much documentation). > > Cheers, > P
