Fabrice i am trying it already for 4 hours with Sphere , but it returns null
most of the time
///// it runs on enter frame////////////////
for(var i:int=0;i<_sf.faces.length;++
i){
trace(_ray.getIntersect(_ray.orig,_ray.dir,_sf.faces[i].v0.position,_sf.faces[i].v1.position,_sf.faces[i].v2.position));
}
and basi
On Tue, May 4, 2010 at 1:15 AM, Fabrice3D <[email protected]> wrote:
> dir, origin, v0, v1, v2
> to check if a ray hits a triangle
>
> Fabrice
>
> On May 3, 2010, at 9:43 PM, Michael Iv wrote:
>
> Someone can tell me what are* v0,v1,v2* in* Ray.getIntersect(p0:Number3D,
> p1:Number3D, v0:Number3D, v1:Number3D, v2:Number3D):Number3D* ???
> Just can't find any example explaining these
>
> Thanks!
>
> --
> Michael Ivanov ,Programmer
> Neurotech Solutions Ltd.
> Flex|Air |3D|Unity|
> www.neurotechresearch.com
> Tel:054-4962254
> [email protected]
> [email protected]
>
>
>
--
Michael Ivanov ,Programmer
Neurotech Solutions Ltd.
Flex|Air |3D|Unity|
www.neurotechresearch.com
Tel:054-4962254
[email protected]
[email protected]