diff options
author | Teravus Ovares | 2008-03-23 06:24:59 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-03-23 06:24:59 +0000 |
commit | dc850df50aca286e9222e231fb200f340ee335de (patch) | |
tree | a823383d8a874db499b41650472269c9f9f8323c /OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | |
parent | Implements (I hope): llRemoveFromLandBanList, llRemoveFromLandPassList, llAdd... (diff) | |
download | opensim-SC_OLD-dc850df50aca286e9222e231fb200f340ee335de.zip opensim-SC_OLD-dc850df50aca286e9222e231fb200f340ee335de.tar.gz opensim-SC_OLD-dc850df50aca286e9222e231fb200f340ee335de.tar.bz2 opensim-SC_OLD-dc850df50aca286e9222e231fb200f340ee335de.tar.xz |
* 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.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index c83027d..1e63ae7 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | |||
@@ -402,7 +402,9 @@ namespace OpenSim.Region.Environment.Scenes | |||
402 | new Quaternion(GroupRotation.W, GroupRotation.X, GroupRotation.Y, GroupRotation.Z); | 402 | new Quaternion(GroupRotation.W, GroupRotation.X, GroupRotation.Y, GroupRotation.Z); |
403 | 403 | ||
404 | // Telling the prim to raytrace. | 404 | // Telling the prim to raytrace. |
405 | EntityIntersection inter = part.TestIntersection(hRay, parentrotation); | 405 | //EntityIntersection inter = part.TestIntersection(hRay, parentrotation); |
406 | |||
407 | EntityIntersection inter = part.TestIntersectionOBB(hRay, parentrotation); | ||
406 | 408 | ||
407 | // This may need to be updated to the maximum draw distance possible.. | 409 | // This may need to be updated to the maximum draw distance possible.. |
408 | // We might (and probably will) be checking for prim creation from other sims | 410 | // We might (and probably will) be checking for prim creation from other sims |