Changed simpleApp to use basic physics.

Done some work of fixing primitive/SceneObject copying.
Set DefaultHome region to 1000,1000.
This commit is contained in:
MW
2007-07-13 16:12:38 +00:00
parent 6c0779f618
commit fcc7f86427
6 changed files with 34 additions and 19 deletions

View File

@@ -41,6 +41,9 @@ namespace SimpleApp
assetServer.SetReceiver(this);
AssetCache assetCache = new AssetCache(assetServer);
PhysicsManager physManager = new PhysicsManager();
physManager.LoadPlugins();
UDPServer udpServer = new UDPServer( internalEndPoint.Port, assetCache, inventoryCache, m_log, m_circuitManager );
PacketServer packetServer = new PacketServer(udpServer);
@@ -55,7 +58,7 @@ namespace SimpleApp
RegionInfo regionInfo = new RegionInfo( 1000, 1000, internalEndPoint, "127.0.0.1" );
MyWorld world = new MyWorld(packetServer.ClientManager, regionInfo, m_circuitManager, communicationsManager, assetCache, httpServer);
world.PhysScene = PhysicsScene.Null;
world.PhysScene = physManager.GetPhysicsScene("basicphysics"); //PhysicsScene.Null;
udpServer.LocalWorld = world;
httpServer.Start();