From 64dcb71c1430f4b97f4e8af944662c182bc1ef64 Mon Sep 17 00:00:00 2001 From: Teravus Ovares (Dan Olivares) Date: Thu, 20 Aug 2009 23:26:40 -0400 Subject: * Fixes Terrain issues with combined regions. --- .../Region/Physics/OdePlugin/ODERayCastRequestManager.cs | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'OpenSim/Region/Physics/OdePlugin/ODERayCastRequestManager.cs') diff --git a/OpenSim/Region/Physics/OdePlugin/ODERayCastRequestManager.cs b/OpenSim/Region/Physics/OdePlugin/ODERayCastRequestManager.cs index c4cb250..d9f4951 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODERayCastRequestManager.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODERayCastRequestManager.cs @@ -232,17 +232,12 @@ namespace OpenSim.Region.Physics.OdePlugin */ // Exclude heightfield geom - if (g1 == m_scene.LandGeom) - return; - if (g2 == m_scene.LandGeom) - return; - if (g1 == m_scene.WaterGeom) + + if (g1 == IntPtr.Zero || g2 == IntPtr.Zero) return; - if (g2 == m_scene.WaterGeom) + if (d.GeomGetClass(g1) == d.GeomClassID.HeightfieldClass || d.GeomGetClass(g2) == d.GeomClassID.HeightfieldClass) return; - - - + // Raytest against AABBs of spaces first, then dig into the spaces it hits for actual geoms. if (d.GeomIsSpace(g1) || d.GeomIsSpace(g2)) { -- cgit v1.1