diff options
author | Justin Clark-Casey (justincc) | 2012-10-05 03:52:42 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-10-05 03:52:42 +0100 |
commit | 130768b16a35e307389e88d902f6e3a785dfb8ee (patch) | |
tree | 5a6e91997c9b5e4ac48a1b8eafba2ab7be74244d /OpenSim/Framework | |
parent | minor: Add missing license information from the top of IUserManagement (diff) | |
download | opensim-SC_OLD-130768b16a35e307389e88d902f6e3a785dfb8ee.zip opensim-SC_OLD-130768b16a35e307389e88d902f6e3a785dfb8ee.tar.gz opensim-SC_OLD-130768b16a35e307389e88d902f6e3a785dfb8ee.tar.bz2 opensim-SC_OLD-130768b16a35e307389e88d902f6e3a785dfb8ee.tar.xz |
Add "show object pos <start-coord> to <end-coord>" command to simulator console.
This allows you to display details of all objects in a given bounding box.
Values parts of the co-ord can be left out as appropriate (e.g. to get all objects between the ground and z=30.
See "help show object pos" for more details.
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/Util.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index 1b9777f..5c7797a 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs | |||
@@ -534,6 +534,19 @@ namespace OpenSim.Framework | |||
534 | } | 534 | } |
535 | 535 | ||
536 | /// <summary> | 536 | /// <summary> |
537 | /// Determines whether a point is inside a bounding box. | ||
538 | /// </summary> | ||
539 | /// <param name='v'>/param> | ||
540 | /// <param name='min'></param> | ||
541 | /// <param name='max'></param> | ||
542 | /// <returns></returns> | ||
543 | public static bool IsInsideBox(Vector3 v, Vector3 min, Vector3 max) | ||
544 | { | ||
545 | return v.X >= min.X & v.Y >= min.Y && v.Z >= min.Z | ||
546 | && v.X <= max.X && v.Y <= max.Y && v.Z <= max.Z; | ||
547 | } | ||
548 | |||
549 | /// <summary> | ||
537 | /// Are the co-ordinates of the new region visible from the old region? | 550 | /// Are the co-ordinates of the new region visible from the old region? |
538 | /// </summary> | 551 | /// </summary> |
539 | /// <param name="oldx">Old region x-coord</param> | 552 | /// <param name="oldx">Old region x-coord</param> |