aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/PhysXPlugin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Physics/PhysXPlugin/PhysXPlugin.cs10
1 files changed, 7 insertions, 3 deletions
diff --git a/OpenSim/Region/Physics/PhysXPlugin/PhysXPlugin.cs b/OpenSim/Region/Physics/PhysXPlugin/PhysXPlugin.cs
index 18935fb..5579848 100644
--- a/OpenSim/Region/Physics/PhysXPlugin/PhysXPlugin.cs
+++ b/OpenSim/Region/Physics/PhysXPlugin/PhysXPlugin.cs
@@ -32,6 +32,8 @@ using OpenSim.Framework;
32using OpenSim.Region.Physics.Manager; 32using OpenSim.Region.Physics.Manager;
33using PhysXWrapper; 33using PhysXWrapper;
34using Quaternion=OpenMetaverse.Quaternion; 34using Quaternion=OpenMetaverse.Quaternion;
35using System.Reflection;
36using log4net;
35 37
36namespace OpenSim.Region.Physics.PhysXPlugin 38namespace OpenSim.Region.Physics.PhysXPlugin
37{ 39{
@@ -40,6 +42,7 @@ namespace OpenSim.Region.Physics.PhysXPlugin
40 /// </summary> 42 /// </summary>
41 public class PhysXPlugin : IPhysicsPlugin 43 public class PhysXPlugin : IPhysicsPlugin
42 { 44 {
45 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
43 private PhysXScene _mScene; 46 private PhysXScene _mScene;
44 47
45 public PhysXPlugin() 48 public PhysXPlugin()
@@ -72,6 +75,7 @@ namespace OpenSim.Region.Physics.PhysXPlugin
72 75
73 public class PhysXScene : PhysicsScene 76 public class PhysXScene : PhysicsScene
74 { 77 {
78 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
75 private List<PhysXCharacter> _characters = new List<PhysXCharacter>(); 79 private List<PhysXCharacter> _characters = new List<PhysXCharacter>();
76 private List<PhysXPrim> _prims = new List<PhysXPrim>(); 80 private List<PhysXPrim> _prims = new List<PhysXPrim>();
77 private float[] _heightMap = null; 81 private float[] _heightMap = null;
@@ -84,7 +88,7 @@ namespace OpenSim.Region.Physics.PhysXPlugin
84 //sceneIdentifier = _sceneIdentifier; 88 //sceneIdentifier = _sceneIdentifier;
85 89
86 mySdk = NxPhysicsSDK.CreateSDK(); 90 mySdk = NxPhysicsSDK.CreateSDK();
87 Console.WriteLine("Sdk created - now creating scene"); 91 m_log.Info("Sdk created - now creating scene");
88 scene = mySdk.CreateScene(); 92 scene = mySdk.CreateScene();
89 } 93 }
90 94
@@ -174,7 +178,7 @@ namespace OpenSim.Region.Physics.PhysXPlugin
174 } 178 }
175 catch (Exception e) 179 catch (Exception e)
176 { 180 {
177 Console.WriteLine(e.Message); 181 m_log.Error(e.Message);
178 } 182 }
179 return fps; 183 return fps;
180 } 184 }
@@ -193,7 +197,7 @@ namespace OpenSim.Region.Physics.PhysXPlugin
193 { 197 {
194 if (_heightMap != null) 198 if (_heightMap != null)
195 { 199 {
196 Console.WriteLine("PhysX - deleting old terrain"); 200 m_log.Debug("PhysX - deleting old terrain");
197 scene.DeleteTerrain(); 201 scene.DeleteTerrain();
198 } 202 }
199 _heightMap = heightMap; 203 _heightMap = heightMap;