aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.Physics/Manager
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim.Physics/Manager')
-rw-r--r--OpenSim.Physics/Manager/PhysicsManager.cs8
-rw-r--r--OpenSim.Physics/Manager/PhysicsScene.cs9
2 files changed, 9 insertions, 8 deletions
diff --git a/OpenSim.Physics/Manager/PhysicsManager.cs b/OpenSim.Physics/Manager/PhysicsManager.cs
index 616682b..291fc7e 100644
--- a/OpenSim.Physics/Manager/PhysicsManager.cs
+++ b/OpenSim.Physics/Manager/PhysicsManager.cs
@@ -30,6 +30,7 @@ using System.Collections;
30using System.IO; 30using System.IO;
31using System.Reflection; 31using System.Reflection;
32using Axiom.MathLib; 32using Axiom.MathLib;
33using OpenSim.Framework.Console;
33 34
34namespace OpenSim.Physics.Manager 35namespace OpenSim.Physics.Manager
35{ 36{
@@ -54,14 +55,13 @@ namespace OpenSim.Physics.Manager
54 55
55 if(_plugins.ContainsKey(engineName)) 56 if(_plugins.ContainsKey(engineName))
56 { 57 {
57 OpenSim.Framework.Console.MainConsole.Instance.WriteLine("creating "+engineName); 58 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(LogPriority.LOW,"creating "+engineName);
58 return _plugins[engineName].GetScene(); 59 return _plugins[engineName].GetScene();
59 } 60 }
60 else 61 else
61 { 62 {
62 string error = String.Format("couldn't find physicsEngine: {0}", engineName); 63 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(LogPriority.MEDIUM,"couldn't find physicsEngine: {0}",engineName);
63 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(error); 64 throw new ArgumentException(String.Format("couldn't find physicsEngine: {0}",engineName));
64 throw new ArgumentException(error);
65 } 65 }
66 } 66 }
67 67
diff --git a/OpenSim.Physics/Manager/PhysicsScene.cs b/OpenSim.Physics/Manager/PhysicsScene.cs
index 0b3dfd2..b79cc46 100644
--- a/OpenSim.Physics/Manager/PhysicsScene.cs
+++ b/OpenSim.Physics/Manager/PhysicsScene.cs
@@ -28,6 +28,7 @@
28using System; 28using System;
29using System.Collections.Generic; 29using System.Collections.Generic;
30using System.Text; 30using System.Text;
31using OpenSim.Framework.Console;
31 32
32namespace OpenSim.Physics.Manager 33namespace OpenSim.Physics.Manager
33{ 34{
@@ -65,13 +66,13 @@ namespace OpenSim.Physics.Manager
65 66
66 public override PhysicsActor AddAvatar(PhysicsVector position) 67 public override PhysicsActor AddAvatar(PhysicsVector position)
67 { 68 {
68 OpenSim.Framework.Console.MainConsole.Instance.WriteLine("NullPhysicsScene : AddAvatar({0})", position); 69 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(LogPriority.VERBOSE,"NullPhysicsScene : AddAvatar({0})", position);
69 return PhysicsActor.Null; 70 return PhysicsActor.Null;
70 } 71 }
71 72
72 public override PhysicsActor AddPrim(PhysicsVector position, PhysicsVector size) 73 public override PhysicsActor AddPrim(PhysicsVector position, PhysicsVector size)
73 { 74 {
74 OpenSim.Framework.Console.MainConsole.Instance.WriteLine("NullPhysicsScene : AddPrim({0},{1})", position, size); 75 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(LogPriority.VERBOSE, "NullPhysicsScene : AddPrim({0},{1})", position, size);
75 return PhysicsActor.Null; 76 return PhysicsActor.Null;
76 } 77 }
77 78
@@ -84,12 +85,12 @@ namespace OpenSim.Physics.Manager
84 85
85 public override void GetResults() 86 public override void GetResults()
86 { 87 {
87 OpenSim.Framework.Console.MainConsole.Instance.WriteLine("NullPhysicsScene : GetResults()"); 88 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(LogPriority.VERBOSE, "NullPhysicsScene : GetResults()");
88 } 89 }
89 90
90 public override void SetTerrain(float[] heightMap) 91 public override void SetTerrain(float[] heightMap)
91 { 92 {
92 OpenSim.Framework.Console.MainConsole.Instance.WriteLine("NullPhysicsScene : SetTerrain({0} items)", heightMap.Length); 93 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(LogPriority.VERBOSE, "NullPhysicsScene : SetTerrain({0} items)", heightMap.Length);
93 } 94 }
94 95
95 public override void DeleteTerrain() 96 public override void DeleteTerrain()