mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
varregion: add plumbing to pass region size from Scene down to the
physics engine. Older physics engines will default to the legacy region size. Update BulletSim to use the new region size information.
This commit is contained in:
@@ -69,7 +69,7 @@ namespace OpenSim.Region.ClientStack
|
||||
/// The name of the OpenSim scene this physics scene is serving. This will be used in log messages.
|
||||
/// </param>
|
||||
/// <returns></returns>
|
||||
protected abstract PhysicsScene GetPhysicsScene(string osSceneIdentifier);
|
||||
protected abstract PhysicsScene GetPhysicsScene(string osSceneIdentifier, Vector3 regionExtent);
|
||||
|
||||
protected abstract ClientStackManager CreateClientStackManager();
|
||||
protected abstract Scene CreateScene(RegionInfo regionInfo, ISimulationDataService simDataService, IEstateDataService estateDataService, AgentCircuitManager circuitManager);
|
||||
@@ -123,13 +123,13 @@ namespace OpenSim.Region.ClientStack
|
||||
/// </param>
|
||||
/// <returns></returns>
|
||||
protected PhysicsScene GetPhysicsScene(
|
||||
string engine, string meshEngine, IConfigSource config, string osSceneIdentifier)
|
||||
string engine, string meshEngine, IConfigSource config, string osSceneIdentifier, Vector3 regionExtent)
|
||||
{
|
||||
PhysicsPluginManager physicsPluginManager;
|
||||
physicsPluginManager = new PhysicsPluginManager();
|
||||
physicsPluginManager.LoadPluginsFromAssemblies("Physics");
|
||||
|
||||
return physicsPluginManager.GetPhysicsScene(engine, meshEngine, config, osSceneIdentifier);
|
||||
return physicsPluginManager.GetPhysicsScene(engine, meshEngine, config, osSceneIdentifier, regionExtent);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user