123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- using System;
- using System.Collections.Generic;
- using System.Reflection;
- using System.Runtime.InteropServices;
- using System.Threading;
- using System.IO;
- using System.Diagnostics;
- using log4net;
- using Nini.Config;
- using Ode.NET;
- using OpenSim.Framework;
- using OpenSim.Region.Physics.Manager;
- using OpenMetaverse;
- namespace OpenSim.Region.Physics.OdePlugin
- {
-
-
-
- public class OdePlugin : IPhysicsPlugin
- {
- private OdeScene m_scene;
- public bool Init()
- {
- return true;
- }
- public PhysicsScene GetScene(String sceneIdentifier)
- {
- if (m_scene == null)
- {
-
-
-
-
-
-
- if (Util.IsWindows())
- Util.LoadArchSpecificWindowsDll("ode.dll");
-
-
- d.InitODE();
-
- m_scene = new OdeScene(GetName(), sceneIdentifier);
- }
- return m_scene;
- }
- public string GetName()
- {
- return ("OpenDynamicsEngine");
- }
- public void Dispose()
- {
- }
- }
- }
|