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

Reply via email to