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

Collin Cusce rafajafar at gmail.com
Sun Jul 1 21:15:26 EDT 2007


hmmm, so I make the null node point where the ship is pointing and give it a
range and radius... K, sounds doable.

I think I'm going to switch this project back to PV3D for now, btw.

On 7/1/07, Peter Kapelyan <flashnine at gmail.com> wrote:
>
> As long as it touches the nullnode- if that happens to be your target
> (crosshair) position in 3d also....
> Yes should work! Please try :)
>
>
> On 7/1/07, Collin Cusce <rafajafar at gmail.com> wrote:
> >
> > 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
> > >
> > >
> >
> > _______________________________________________
> > 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/3f35f27a/attachment-0001.htm


More information about the Papervision3D mailing list