mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
* Flying with ODE and got that sinking feeling? This should help
This commit is contained in:
@@ -345,7 +345,7 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||
vec.Y = (_target_velocity.Y - vel.Y) * PID_D + (_zeroPosition.Y - pos.Y) * PID_P;
|
||||
if (flying)
|
||||
{
|
||||
vec.Z = (_target_velocity.Z - vel.Z) * PID_D + (_zeroPosition.Z - pos.Z) * PID_P;
|
||||
vec.Z = (_target_velocity.Z - vel.Z) * (PID_D + 5100) + (_zeroPosition.Z - pos.Z) * PID_P;
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -388,7 +388,7 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||
|
||||
if (flying)
|
||||
{
|
||||
vec.Z = (_target_velocity.Z - vel.Z) * PID_D;
|
||||
vec.Z = (_target_velocity.Z - vel.Z) * (PID_D + 5100);
|
||||
}
|
||||
}
|
||||
if (flying)
|
||||
|
||||
Reference in New Issue
Block a user