diff options
author | UbitUmarov | 2012-04-16 16:33:57 +0100 |
---|---|---|
committer | UbitUmarov | 2012-04-16 16:33:57 +0100 |
commit | 25a2f97bc2bb26fdb0d5856340f3ec8ce3ca9b98 (patch) | |
tree | e846f81e86e21f30a5ce43093fe5e1fa15ca4b5c /OpenSim | |
parent | ubitODE + physmanager: - Revised use of ODE collisions categories and bits(fl... (diff) | |
download | opensim-SC-25a2f97bc2bb26fdb0d5856340f3ec8ce3ca9b98.zip opensim-SC-25a2f97bc2bb26fdb0d5856340f3ec8ce3ca9b98.tar.gz opensim-SC-25a2f97bc2bb26fdb0d5856340f3ec8ce3ca9b98.tar.bz2 opensim-SC-25a2f97bc2bb26fdb0d5856340f3ec8ce3ca9b98.tar.xz |
added suport funtions for ubitODE raycastFiltered
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index a34079c..3e08128 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -1891,6 +1891,19 @@ namespace OpenSim.Region.Framework.Scenes | |||
1891 | EventManager.TriggerPrimsLoaded(this); | 1891 | EventManager.TriggerPrimsLoaded(this); |
1892 | } | 1892 | } |
1893 | 1893 | ||
1894 | public bool SuportsRayCastFiltered() | ||
1895 | { | ||
1896 | if (PhysicsScene == null) | ||
1897 | return false; | ||
1898 | return PhysicsScene.SuportsRaycastWorldFiltered(); | ||
1899 | } | ||
1900 | |||
1901 | public object RayCastFiltered(Vector3 position, Vector3 direction, float length, int Count, RayFilterFlags filter) | ||
1902 | { | ||
1903 | if (PhysicsScene == null) | ||
1904 | return null; | ||
1905 | return PhysicsScene.RaycastWorld(position, direction, length, Count,filter); | ||
1906 | } | ||
1894 | 1907 | ||
1895 | /// <summary> | 1908 | /// <summary> |
1896 | /// Gets a new rez location based on the raycast and the size of the object that is being rezzed. | 1909 | /// Gets a new rez location based on the raycast and the size of the object that is being rezzed. |