diff options
author | John Hurliman | 2010-02-04 13:31:06 -0800 |
---|---|---|
committer | John Hurliman | 2010-02-04 13:31:06 -0800 |
commit | 8556a9f1a8c85bc77c87beeaae1aec7d170ebbd3 (patch) | |
tree | f0911e0a248d41b7a733fdc0d33b3be8dea11b4e /OpenSim | |
parent | Revert "change position of OnAttach event firing so that this also happens wh... (diff) | |
download | opensim-SC_OLD-8556a9f1a8c85bc77c87beeaae1aec7d170ebbd3.zip opensim-SC_OLD-8556a9f1a8c85bc77c87beeaae1aec7d170ebbd3.tar.gz opensim-SC_OLD-8556a9f1a8c85bc77c87beeaae1aec7d170ebbd3.tar.bz2 opensim-SC_OLD-8556a9f1a8c85bc77c87beeaae1aec7d170ebbd3.tar.xz |
Applying patch #4534 by Misterblue to fix ODE physics stickiness
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Physics/OdePlugin/ODEPrim.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs index 973aa84..44b2727 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs | |||
@@ -1575,6 +1575,7 @@ Console.WriteLine(" JointCreateFixed"); | |||
1575 | { | 1575 | { |
1576 | //Console.WriteLine("Move " + m_primName); | 1576 | //Console.WriteLine("Move " + m_primName); |
1577 | if (!d.BodyIsEnabled (Body)) d.BodyEnable (Body); // KF add 161009 | 1577 | if (!d.BodyIsEnabled (Body)) d.BodyEnable (Body); // KF add 161009 |
1578 | /* | ||
1578 | // NON-'VEHICLES' are dealt with here | 1579 | // NON-'VEHICLES' are dealt with here |
1579 | if (d.BodyIsEnabled(Body) && !m_angularlock.ApproxEquals(Vector3.Zero, 0.003f)) | 1580 | if (d.BodyIsEnabled(Body) && !m_angularlock.ApproxEquals(Vector3.Zero, 0.003f)) |
1580 | { | 1581 | { |
@@ -1587,6 +1588,7 @@ Console.WriteLine(" JointCreateFixed"); | |||
1587 | avel2.Z = 0; | 1588 | avel2.Z = 0; |
1588 | d.BodySetAngularVel(Body, avel2.X, avel2.Y, avel2.Z); | 1589 | d.BodySetAngularVel(Body, avel2.X, avel2.Y, avel2.Z); |
1589 | } | 1590 | } |
1591 | */ | ||
1590 | //float PID_P = 900.0f; | 1592 | //float PID_P = 900.0f; |
1591 | 1593 | ||
1592 | float m_mass = CalculateMass(); | 1594 | float m_mass = CalculateMass(); |