As usual works just fine for me :))
I haven't added it exactly for what I suppose you want to do.
It was added to allow the retrieving of uv's,map,meshname from a hittest result 
performed by the BSP.
Look at BSPHittest code if you want to see how the class was used.
(If you have followed the livestream from FITC where Rob showed the FPS demo 
we've builded, then you know now how the rockets were builded.)  :)

If you ensure that the position you test on is a result of a plane/ray hitest 
where the position is on the "plane" of the triangle
then it should result in what you need: that is being used as test point in 
triangle. UV returned would be null if not inside.

I wouldn't be honest not adding that I think very soon make some speed compairs 
with the ray intersect implementation I have in Prefab replaced with this 
class...
so the class might evolve bits.

Fabrice


On Aug 25, 2010, at 3:12 PM, Michael Iv wrote:

> hey Fabrice , is BaryCentricTest is like Ray.getIntersect() but  for UV  
> coords >?
> 
> Doest it work fine ? (Unlike Ray.getIntersect() ;)  );
> BaryCentricTest
> 
> 
> On Wed, Aug 25, 2010 at 3:33 PM, Fabrice3D <[email protected]> wrote:
> http://code.google.com/p/away3d/source/browse/#svn/trunk/fp10/Away3D/src/away3d/tools/utils
> 
> here you go.
> 
> Fabrice
> On Aug 25, 2010, at 2:18 PM, Bobby wrote:
> 
> > Hi Edwin,
> >      I am using the away3d_2_5_0 version. I have the away3d_3_5_0
> > also with me. But in both these I cannot find utils folder with the
> > tools package. How can I overcome this error. I am using the
> > downloaded zip files from the Away 3D site. I am not using SVN. Is
> > that causing the problem. CAN ANYONE HELP ME !!!!!!!!!!!!!!
> >
> > Thanks in Advance
> > Bobby Francis Joseph
> 
> 
> 
> 
> -- 
> Michael Ivanov ,Programmer
> Neurotech Solutions Ltd.
> Flex|Air |3D|Unity|
> www.neurotechresearch.com
> http://blog.alladvanced.net
> http://www.meetup.com/GO3D-Games-Opensource-3D/
> Tel:054-4962254
> [email protected]
> [email protected]
> 

Reply via email to