[Papervision3D] Finding out of a 3D object is between camera and another object

Collin Cusce rafajafar at gmail.com
Sun Jul 1 17:21:57 EDT 2007


Wellll you saw the game...

I want the targeting scope to "lock on" to any ship. Will this work for
that?

On 7/1/07, Peter Kapelyan <flashnine at gmail.com> wrote:
>
> Whoopsydaisy that should have been
>
>  #2 check with
>
> nullnode.distanceTo(myOtherIntersectingObj)
>
> Best
>
> On 7/1/07, Peter Kapelyan <flashnine at gmail.com> wrote:
> >
> > #1 Place a null between the camera and the object you are looking at...
> > like
> > nullnode.x=(camera.x+myObj.x)/2;
> > nullnode.y=(camera.y+myObj.y)/2;
> > nullnode.z=(camera.z+myObj.z)/2;
> >
> > #2 check with
> >
> > nullnode.distanceTo(myObj)
> >
> > the smaller the num the closer it is to the null!
> > Should work...untested...
> >
> > Best!
> > -Pete
> >
> >
> > On 6/30/07, Collin Cusce <rafajafar at gmail.com > wrote:
> > >
> > > Let's say I want something to flash or glow as soon as it comes
> > > between the camera and another object. How would you tackle this without
> > > using container collision?
> > > _______________________________________________
> > > Papervision3D mailing list
> > > Papervision3D at osflash.org
> > > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> > >
> > >
> >
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20070701/89fe46c1/attachment.htm


More information about the Papervision3D mailing list