* Implements Oriented Bounding Box raytracing.

* It's not perfect, but it's good enough. (rarely erroneously returns a backface collision)
* After updating to this revision, rez a prim on another prim and watch it appear where you'd expect it to appear.
This commit is contained in:
Teravus Ovares
2008-03-23 06:24:59 +00:00
parent 5deca3f0c5
commit dc850df50a
3 changed files with 247 additions and 51 deletions

View File

@@ -402,7 +402,9 @@ namespace OpenSim.Region.Environment.Scenes
new Quaternion(GroupRotation.W, GroupRotation.X, GroupRotation.Y, GroupRotation.Z);
// Telling the prim to raytrace.
EntityIntersection inter = part.TestIntersection(hRay, parentrotation);
//EntityIntersection inter = part.TestIntersection(hRay, parentrotation);
EntityIntersection inter = part.TestIntersectionOBB(hRay, parentrotation);
// This may need to be updated to the maximum draw distance possible..
// We might (and probably will) be checking for prim creation from other sims