mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 04:05:42 +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:
@@ -32,6 +32,7 @@ using System.Reflection;
|
||||
using Nini.Config;
|
||||
using log4net;
|
||||
using OpenSim.Framework;
|
||||
using OpenMetaverse;
|
||||
|
||||
namespace OpenSim.Region.Physics.Manager
|
||||
{
|
||||
@@ -66,7 +67,8 @@ namespace OpenSim.Region.Physics.Manager
|
||||
/// <param name="meshEngineName"></param>
|
||||
/// <param name="config"></param>
|
||||
/// <returns></returns>
|
||||
public PhysicsScene GetPhysicsScene(string physEngineName, string meshEngineName, IConfigSource config, string regionName)
|
||||
public PhysicsScene GetPhysicsScene(string physEngineName, string meshEngineName,
|
||||
IConfigSource config, string regionName, Vector3 regionExtent)
|
||||
{
|
||||
if (String.IsNullOrEmpty(physEngineName))
|
||||
{
|
||||
@@ -94,7 +96,7 @@ namespace OpenSim.Region.Physics.Manager
|
||||
{
|
||||
m_log.Info("[PHYSICS]: creating " + physEngineName);
|
||||
PhysicsScene result = _PhysPlugins[physEngineName].GetScene(regionName);
|
||||
result.Initialise(meshEngine, config);
|
||||
result.Initialise(meshEngine, config, regionExtent);
|
||||
return result;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user