[Papervision3D] Finding out of a 3D object is between camera and another object
Peter Kapelyan
flashnine at gmail.com
Sun Jul 1 17:10:54 EDT 2007
#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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20070701/4cf4f94c/attachment.htm
More information about the Papervision3D
mailing list