diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Physics/ChOdePlugin/OdePhysicsJoint.cs (renamed from OpenSim/Region/Physics/PhysXPlugin/PhysXPlugin.cs) | 46 | ||||
-rw-r--r-- | OpenSim/Region/Physics/PhysXPlugin/PhysXCharacter.cs | 8 | ||||
-rw-r--r-- | OpenSim/Region/Physics/PhysXPlugin/PhysXPrim.cs | 2 |
3 files changed, 19 insertions, 37 deletions
diff --git a/OpenSim/Region/Physics/PhysXPlugin/PhysXPlugin.cs b/OpenSim/Region/Physics/ChOdePlugin/OdePhysicsJoint.cs index ca7a4f8..b4a3c48 100644 --- a/OpenSim/Region/Physics/PhysXPlugin/PhysXPlugin.cs +++ b/OpenSim/Region/Physics/ChOdePlugin/OdePhysicsJoint.cs | |||
@@ -26,51 +26,23 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using OpenMetaverse; |
30 | using Nini.Config; | 30 | using Ode.NET; |
31 | using OpenSim.Framework; | 31 | using OpenSim.Framework; |
32 | using OpenSim.Region.Physics.Manager; | 32 | using OpenSim.Region.Physics.Manager; |
33 | using PhysXWrapper; | 33 | using OpenSim.Region.Physics.OdePlugin; |
34 | using Quaternion=OpenMetaverse.Quaternion; | ||
35 | using System.Reflection; | ||
36 | using log4net; | ||
37 | using OpenMetaverse; | ||
38 | 34 | ||
39 | namespace OpenSim.Region.Physics.PhysXPlugin | 35 | namespace OpenSim.Region.Physics.OdePlugin |
40 | { | 36 | { |
41 | /// <summary> | 37 | class OdePhysicsJoint : PhysicsJoint |
42 | /// Will be the PhysX plugin but for now will be a very basic physics engine | ||
43 | /// </summary> | ||
44 | public class PhysXPlugin : IPhysicsPlugin | ||
45 | { | 38 | { |
46 | //private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 39 | public override bool IsInPhysicsEngine |
47 | private PhysXScene _mScene; | ||
48 | |||
49 | public PhysXPlugin() | ||
50 | { | ||
51 | } | ||
52 | |||
53 | public bool Init() | ||
54 | { | 40 | { |
55 | return true; | 41 | get |
56 | } | ||
57 | |||
58 | public PhysicsScene GetScene(string sceneIdentifier) | ||
59 | { | ||
60 | if (_mScene == null) | ||
61 | { | 42 | { |
62 | _mScene = new PhysXScene(sceneIdentifier); | 43 | return (jointID != IntPtr.Zero); |
63 | } | 44 | } |
64 | return (_mScene); | ||
65 | } | ||
66 | |||
67 | public string GetName() | ||
68 | { | ||
69 | return ("RealPhysX"); | ||
70 | } | ||
71 | |||
72 | public void Dispose() | ||
73 | { | ||
74 | } | 45 | } |
46 | public IntPtr jointID; | ||
75 | } | 47 | } |
76 | } | 48 | } |
diff --git a/OpenSim/Region/Physics/PhysXPlugin/PhysXCharacter.cs b/OpenSim/Region/Physics/PhysXPlugin/PhysXCharacter.cs index 92261cd..fc3adac 100644 --- a/OpenSim/Region/Physics/PhysXPlugin/PhysXCharacter.cs +++ b/OpenSim/Region/Physics/PhysXPlugin/PhysXCharacter.cs | |||
@@ -188,6 +188,14 @@ namespace OpenSim.Region.Physics.PhysXPlugin | |||
188 | { | 188 | { |
189 | } | 189 | } |
190 | 190 | ||
191 | public override void VehicleFlagsSet(int param) | ||
192 | { | ||
193 | } | ||
194 | |||
195 | public override void VehicleFlagsRemove(int param) | ||
196 | { | ||
197 | } | ||
198 | |||
191 | public override void VehicleFlags(int param, bool remove) | 199 | public override void VehicleFlags(int param, bool remove) |
192 | { | 200 | { |
193 | } | 201 | } |
diff --git a/OpenSim/Region/Physics/PhysXPlugin/PhysXPrim.cs b/OpenSim/Region/Physics/PhysXPlugin/PhysXPrim.cs index c0e24fd..dc70c80 100644 --- a/OpenSim/Region/Physics/PhysXPlugin/PhysXPrim.cs +++ b/OpenSim/Region/Physics/PhysXPlugin/PhysXPrim.cs | |||
@@ -277,6 +277,8 @@ namespace OpenSim.Region.Physics.PhysXPlugin | |||
277 | 277 | ||
278 | } | 278 | } |
279 | 279 | ||
280 | public override void VehicleFlagsSet(int param) { } | ||
281 | public override void VehicleFlagsRemove(int param) { } | ||
280 | public override void VehicleFlags(int param, bool remove) { } | 282 | public override void VehicleFlags(int param, bool remove) { } |
281 | 283 | ||
282 | public override void SetVolumeDetect(int param) | 284 | public override void SetVolumeDetect(int param) |