diff options
-rw-r--r-- | OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs b/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs index 8abf6cf..309cebd 100644 --- a/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs +++ b/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs | |||
@@ -950,13 +950,13 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
950 | bool noskip = true; | 950 | bool noskip = true; |
951 | if (dop1ava) | 951 | if (dop1ava) |
952 | { | 952 | { |
953 | if (!(((OdeCharacter)p1).Collide(g1, false, ref curContact, ref FeetCollision))) | 953 | if (!(((OdeCharacter)p1).Collide(g1,g2, false, ref curContact, ref FeetCollision))) |
954 | 954 | ||
955 | noskip = false; | 955 | noskip = false; |
956 | } | 956 | } |
957 | else if (dop2ava) | 957 | else if (dop2ava) |
958 | { | 958 | { |
959 | if (!(((OdeCharacter)p2).Collide(g2, true, ref curContact, ref FeetCollision))) | 959 | if (!(((OdeCharacter)p2).Collide(g2,g1, true, ref curContact, ref FeetCollision))) |
960 | noskip = false; | 960 | noskip = false; |
961 | } | 961 | } |
962 | 962 | ||
@@ -1095,10 +1095,11 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
1095 | // do colisions with static space | 1095 | // do colisions with static space |
1096 | d.SpaceCollide2(chr.collider, StaticSpace, IntPtr.Zero, nearCallback); | 1096 | d.SpaceCollide2(chr.collider, StaticSpace, IntPtr.Zero, nearCallback); |
1097 | 1097 | ||
1098 | // chars with chars | ||
1099 | d.SpaceCollide(CharsSpace, IntPtr.Zero, nearCallback); | ||
1100 | // no coll with gnd | 1098 | // no coll with gnd |
1101 | } | 1099 | } |
1100 | // chars with chars | ||
1101 | d.SpaceCollide(CharsSpace, IntPtr.Zero, nearCallback); | ||
1102 | |||
1102 | } | 1103 | } |
1103 | catch (AccessViolationException) | 1104 | catch (AccessViolationException) |
1104 | { | 1105 | { |