ubOde fix contact relative velocity sign

LSLKeyTest
UbitUmarov 2016-07-24 21:16:14 +01:00
parent d6d3e14f29
commit 574b97d93d
1 changed files with 31 additions and 30 deletions

View File

@ -1101,6 +1101,7 @@ namespace OpenSim.Region.PhysicsModule.ubOde
if (p1events) if (p1events)
{ {
contact.SurfaceNormal = -contact.SurfaceNormal; contact.SurfaceNormal = -contact.SurfaceNormal;
contact.RelativeSpeed = -contact.RelativeSpeed;
AddCollisionEventReporting(p1); AddCollisionEventReporting(p1);
p1.AddCollisionEvent(obj2LocalID, contact); p1.AddCollisionEvent(obj2LocalID, contact);
} }