diff options
Diffstat (limited to 'OpenSim/Region/Physics/Manager/PhysicsManager.cs')
-rw-r--r-- | OpenSim/Region/Physics/Manager/PhysicsManager.cs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/OpenSim/Region/Physics/Manager/PhysicsManager.cs b/OpenSim/Region/Physics/Manager/PhysicsManager.cs index 0e28522..265bce6 100644 --- a/OpenSim/Region/Physics/Manager/PhysicsManager.cs +++ b/OpenSim/Region/Physics/Manager/PhysicsManager.cs | |||
@@ -27,10 +27,8 @@ | |||
27 | */ | 27 | */ |
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.Collections; | ||
31 | using System.IO; | 30 | using System.IO; |
32 | using System.Reflection; | 31 | using System.Reflection; |
33 | using Axiom.MathLib; | ||
34 | using OpenSim.Framework.Console; | 32 | using OpenSim.Framework.Console; |
35 | 33 | ||
36 | namespace OpenSim.Physics.Manager | 34 | namespace OpenSim.Physics.Manager |
@@ -56,19 +54,19 @@ namespace OpenSim.Physics.Manager | |||
56 | 54 | ||
57 | if(_plugins.ContainsKey(engineName)) | 55 | if(_plugins.ContainsKey(engineName)) |
58 | { | 56 | { |
59 | OpenSim.Framework.Console.MainLog.Instance.WriteLine(LogPriority.LOW,"creating "+engineName); | 57 | MainLog.Instance.WriteLine(LogPriority.LOW,"creating "+engineName); |
60 | return _plugins[engineName].GetScene(); | 58 | return _plugins[engineName].GetScene(); |
61 | } | 59 | } |
62 | else | 60 | else |
63 | { | 61 | { |
64 | OpenSim.Framework.Console.MainLog.Instance.WriteLine(LogPriority.MEDIUM,"couldn't find physicsEngine: {0}",engineName); | 62 | MainLog.Instance.WriteLine(LogPriority.MEDIUM,"couldn't find physicsEngine: {0}",engineName); |
65 | throw new ArgumentException(String.Format("couldn't find physicsEngine: {0}",engineName)); | 63 | throw new ArgumentException(String.Format("couldn't find physicsEngine: {0}",engineName)); |
66 | } | 64 | } |
67 | } | 65 | } |
68 | 66 | ||
69 | public void LoadPlugins() | 67 | public void LoadPlugins() |
70 | { | 68 | { |
71 | string path = Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory ,"Physics"); | 69 | string path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory ,"Physics"); |
72 | string[] pluginFiles = Directory.GetFiles(path, "*.dll"); | 70 | string[] pluginFiles = Directory.GetFiles(path, "*.dll"); |
73 | 71 | ||
74 | 72 | ||