diff options
author | Melanie | 2012-05-13 01:24:10 +0100 |
---|---|---|
committer | Melanie | 2012-05-13 01:24:10 +0100 |
commit | e5653ebeb795c3a04f7fb358936f5bfa82ecda6e (patch) | |
tree | 92bf319030bf6f8f39378769887801b347ffc01d /OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs | |
parent | Merge branch 'master' into careminster (diff) | |
parent | Mantis 6015 new LSL function llGetAgentList. (diff) | |
download | opensim-SC-e5653ebeb795c3a04f7fb358936f5bfa82ecda6e.zip opensim-SC-e5653ebeb795c3a04f7fb358936f5bfa82ecda6e.tar.gz opensim-SC-e5653ebeb795c3a04f7fb358936f5bfa82ecda6e.tar.bz2 opensim-SC-e5653ebeb795c3a04f7fb358936f5bfa82ecda6e.tar.xz |
Merge branch 'avination' into careminster
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs b/OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs index b884b62..43b4581 100644 --- a/OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs +++ b/OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs | |||
@@ -734,9 +734,9 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
734 | d.JointSetAMotorParam(Amotor, (int)d.JointParam.Vel2, 0); | 734 | d.JointSetAMotorParam(Amotor, (int)d.JointParam.Vel2, 0); |
735 | d.JointSetAMotorParam(Amotor, (int)d.JointParam.Vel3, 0); | 735 | d.JointSetAMotorParam(Amotor, (int)d.JointParam.Vel3, 0); |
736 | 736 | ||
737 | d.JointSetAMotorParam(Amotor, (int)dParam.FMax, 5e6f); | 737 | d.JointSetAMotorParam(Amotor, (int)dParam.FMax, 5e8f); |
738 | d.JointSetAMotorParam(Amotor, (int)dParam.FMax2, 5e6f); | 738 | d.JointSetAMotorParam(Amotor, (int)dParam.FMax2, 5e8f); |
739 | d.JointSetAMotorParam(Amotor, (int)dParam.FMax3, 5e6f); | 739 | d.JointSetAMotorParam(Amotor, (int)dParam.FMax3, 5e8f); |
740 | } | 740 | } |
741 | 741 | ||
742 | /// <summary> | 742 | /// <summary> |
@@ -784,6 +784,8 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
784 | // the Amotor still lets avatar rotation to drift during colisions | 784 | // the Amotor still lets avatar rotation to drift during colisions |
785 | // so force it back to identity | 785 | // so force it back to identity |
786 | 786 | ||
787 | |||
788 | |||
787 | d.Quaternion qtmp; | 789 | d.Quaternion qtmp; |
788 | qtmp.W = 1; | 790 | qtmp.W = 1; |
789 | qtmp.X = 0; | 791 | qtmp.X = 0; |
@@ -1004,9 +1006,9 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
1004 | } | 1006 | } |
1005 | } | 1007 | } |
1006 | 1008 | ||
1007 | if (velLengthSquared > 2500.0f) // 50m/s apply breaks | 1009 | if (velLengthSquared > 625.0f) // 25m/s apply breaks |
1008 | { | 1010 | { |
1009 | breakfactor = 0.16f * m_mass; | 1011 | breakfactor = 0.31f * m_mass; |
1010 | vec.X -= breakfactor * vel.X; | 1012 | vec.X -= breakfactor * vel.X; |
1011 | vec.Y -= breakfactor * vel.Y; | 1013 | vec.Y -= breakfactor * vel.Y; |
1012 | vec.Z -= breakfactor * vel.Z; | 1014 | vec.Z -= breakfactor * vel.Z; |