mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 11:57:03 +08:00
BulletSim: add osGetPhysicsEngineType() LSL function and update
the physics engines to return the name that is specified in the INI
file ("physics = XXX") as the type of engine.
This os function is a little different than the others in that it
does not throw an exception of one is not privilaged to use it.
It merely returns an empty string.
This commit is contained in:
@@ -72,7 +72,7 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||
// http://opensimulator.org/mantis/view.php?id=2750).
|
||||
d.InitODE();
|
||||
|
||||
m_scene = new OdeScene(sceneIdentifier);
|
||||
m_scene = new OdeScene(GetName(), sceneIdentifier);
|
||||
}
|
||||
|
||||
return m_scene;
|
||||
|
||||
@@ -526,11 +526,12 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||
/// These settings need to be tweaked 'exactly' right or weird stuff happens.
|
||||
/// </summary>
|
||||
/// <param value="name">Name of the scene. Useful in debug messages.</param>
|
||||
public OdeScene(string name)
|
||||
public OdeScene(string engineType, string name)
|
||||
{
|
||||
m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType.ToString() + "." + name);
|
||||
|
||||
Name = name;
|
||||
EngineType = engineType;
|
||||
|
||||
nearCallback = near;
|
||||
triCallback = TriCallback;
|
||||
|
||||
Reference in New Issue
Block a user