ubitODE: - made avatar/ground collision pid servo a bit softer since seems a bit unstable with small avas in AVI even if fine on my testsite - Removed reading of PID parameters from config files since that only serves to mess things up and adds more unknowns
parent
36207b88ff
commit
d7e2454281
|
@ -851,10 +851,10 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||||
float depth = terrainheight - chrminZ;
|
float depth = terrainheight - chrminZ;
|
||||||
if (!flying)
|
if (!flying)
|
||||||
{
|
{
|
||||||
vec.Z = -vel.Z * PID_D * 1.5f + depth * PID_P * 50;
|
vec.Z = -vel.Z * PID_D * 1.5f + depth * PID_P * 30;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
vec.Z = depth * PID_P * 50;
|
vec.Z = depth * PID_P * 30;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Vector3 vtmp;
|
Vector3 vtmp;
|
||||||
|
|
|
@ -455,15 +455,15 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||||
|
|
||||||
geomDefaultDensity = physicsconfig.GetFloat("geometry_default_density", geomDefaultDensity);
|
geomDefaultDensity = physicsconfig.GetFloat("geometry_default_density", geomDefaultDensity);
|
||||||
bodyFramesAutoDisable = physicsconfig.GetInt("body_frames_auto_disable", bodyFramesAutoDisable);
|
bodyFramesAutoDisable = physicsconfig.GetInt("body_frames_auto_disable", bodyFramesAutoDisable);
|
||||||
|
/*
|
||||||
bodyPIDD = physicsconfig.GetFloat("body_pid_derivative", bodyPIDD);
|
bodyPIDD = physicsconfig.GetFloat("body_pid_derivative", bodyPIDD);
|
||||||
bodyPIDG = physicsconfig.GetFloat("body_pid_gain", bodyPIDG);
|
bodyPIDG = physicsconfig.GetFloat("body_pid_gain", bodyPIDG);
|
||||||
|
*/
|
||||||
forceSimplePrimMeshing = physicsconfig.GetBoolean("force_simple_prim_meshing", forceSimplePrimMeshing);
|
forceSimplePrimMeshing = physicsconfig.GetBoolean("force_simple_prim_meshing", forceSimplePrimMeshing);
|
||||||
meshSculptedPrim = physicsconfig.GetBoolean("mesh_sculpted_prim", meshSculptedPrim);
|
meshSculptedPrim = physicsconfig.GetBoolean("mesh_sculpted_prim", meshSculptedPrim);
|
||||||
meshSculptLOD = physicsconfig.GetFloat("mesh_lod", meshSculptLOD);
|
meshSculptLOD = physicsconfig.GetFloat("mesh_lod", meshSculptLOD);
|
||||||
MeshSculptphysicalLOD = physicsconfig.GetFloat("mesh_physical_lod", MeshSculptphysicalLOD);
|
MeshSculptphysicalLOD = physicsconfig.GetFloat("mesh_physical_lod", MeshSculptphysicalLOD);
|
||||||
|
/*
|
||||||
if (Environment.OSVersion.Platform == PlatformID.Unix)
|
if (Environment.OSVersion.Platform == PlatformID.Unix)
|
||||||
{
|
{
|
||||||
avPIDD = physicsconfig.GetFloat("av_pid_derivative_linux", avPIDD);
|
avPIDD = physicsconfig.GetFloat("av_pid_derivative_linux", avPIDD);
|
||||||
|
@ -471,10 +471,11 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
||||||
avPIDD = physicsconfig.GetFloat("av_pid_derivative_win", avPIDD);
|
avPIDD = physicsconfig.GetFloat("av_pid_derivative_win", avPIDD);
|
||||||
avPIDP = physicsconfig.GetFloat("av_pid_proportional_win", avPIDP);
|
avPIDP = physicsconfig.GetFloat("av_pid_proportional_win", avPIDP);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
physics_logging = physicsconfig.GetBoolean("physics_logging", false);
|
physics_logging = physicsconfig.GetBoolean("physics_logging", false);
|
||||||
physics_logging_interval = physicsconfig.GetInt("physics_logging_interval", 0);
|
physics_logging_interval = physicsconfig.GetInt("physics_logging_interval", 0);
|
||||||
physics_logging_append_existing_logfile = physicsconfig.GetBoolean("physics_logging_append_existing_logfile", false);
|
physics_logging_append_existing_logfile = physicsconfig.GetBoolean("physics_logging_append_existing_logfile", false);
|
||||||
|
|
Loading…
Reference in New Issue