ubOde fix contact relative velocity sign
parent
d6d3e14f29
commit
574b97d93d
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue