Hi, can any one point me in the right direction ?

I'm trying to connect 2 sprites with a line. To do this,
I think it would be necessary to take the intersection coord by a ray
calculated from the projection of the MovieClipSprite's 2D coord to
attach, and the plane that contain the MovieClipSprite itself

when I say MovieClipSprite 2D coord I mean:  (sprite.movieclip.x + 2,
sprite.movieclip.y - 20)  e.g.

the plane of the MovieClipSprite would be:

            var p:Plane3D = new Plane3D();
            p.fromNormalAndPoint(camera.lookingAtTarget,
sprite.position);

            (ray = ....)

           intersectPoint =
p.getIntersectionSegmentNumbers(camera.position, ray);


the mapped MovieClipSprite's coord and the ray:  is where  i missed

please help!

Reply via email to