Merge branch 'master' into careminster
commit
2ce4a758e2
|
@ -130,6 +130,7 @@ public struct CollisionDesc
|
||||||
public uint bID;
|
public uint bID;
|
||||||
public Vector3 point;
|
public Vector3 point;
|
||||||
public Vector3 normal;
|
public Vector3 normal;
|
||||||
|
public float penetration;
|
||||||
}
|
}
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public struct EntityProperties
|
public struct EntityProperties
|
||||||
|
|
|
@ -557,8 +557,9 @@ public sealed class BSScene : PhysicsScene, IPhysicsParameters
|
||||||
uint cB = m_collisionArray[ii].bID;
|
uint cB = m_collisionArray[ii].bID;
|
||||||
Vector3 point = m_collisionArray[ii].point;
|
Vector3 point = m_collisionArray[ii].point;
|
||||||
Vector3 normal = m_collisionArray[ii].normal;
|
Vector3 normal = m_collisionArray[ii].normal;
|
||||||
SendCollision(cA, cB, point, normal, 0.01f);
|
float penetration = m_collisionArray[ii].penetration;
|
||||||
SendCollision(cB, cA, point, -normal, 0.01f);
|
SendCollision(cA, cB, point, normal, penetration);
|
||||||
|
SendCollision(cB, cA, point, -normal, penetration);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -307,6 +307,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
|
||||||
null,
|
null,
|
||||||
constructorParams,
|
constructorParams,
|
||||||
null,
|
null,
|
||||||
|
null,
|
||||||
null);
|
null);
|
||||||
else
|
else
|
||||||
m_Script
|
m_Script
|
||||||
|
|
|
@ -264,7 +264,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance.Tests
|
||||||
TestStop(script);
|
TestStop(script);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
// Disabling for now as these are not particularly useful tests (since they fail due to stack overflow before
|
||||||
|
// termination can even be tried.
|
||||||
|
// [Test]
|
||||||
public void TestStopOnInfiniteUserFunctionCallLoop()
|
public void TestStopOnInfiniteUserFunctionCallLoop()
|
||||||
{
|
{
|
||||||
TestHelpers.InMethod();
|
TestHelpers.InMethod();
|
||||||
|
@ -294,7 +296,9 @@ default
|
||||||
TestStop(script);
|
TestStop(script);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
// Disabling for now as these are not particularly useful tests (since they fail due to stack overflow before
|
||||||
|
// termination can even be tried.
|
||||||
|
// [Test]
|
||||||
public void TestStopOnInfiniteManualEventCallLoop()
|
public void TestStopOnInfiniteManualEventCallLoop()
|
||||||
{
|
{
|
||||||
TestHelpers.InMethod();
|
TestHelpers.InMethod();
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue