diff options
4 files changed, 12 insertions, 4 deletions
diff --git a/OpenSim/Region/Physics/Manager/PhysicsActor.cs b/OpenSim/Region/Physics/Manager/PhysicsActor.cs index 0405dad..e39cee7 100644 --- a/OpenSim/Region/Physics/Manager/PhysicsActor.cs +++ b/OpenSim/Region/Physics/Manager/PhysicsActor.cs | |||
@@ -71,6 +71,15 @@ namespace OpenSim.Region.Physics.Manager | |||
71 | RelativeSpeed = 0f; // for now let this one be set explicity | 71 | RelativeSpeed = 0f; // for now let this one be set explicity |
72 | CharacterFeet = true; // keep other plugins work as before | 72 | CharacterFeet = true; // keep other plugins work as before |
73 | } | 73 | } |
74 | |||
75 | public ContactPoint(Vector3 position, Vector3 surfaceNormal, float penetrationDepth, bool feet) | ||
76 | { | ||
77 | Position = position; | ||
78 | SurfaceNormal = surfaceNormal; | ||
79 | PenetrationDepth = penetrationDepth; | ||
80 | RelativeSpeed = 0f; // for now let this one be set explicity | ||
81 | CharacterFeet = feet; // keep other plugins work as before | ||
82 | } | ||
74 | } | 83 | } |
75 | 84 | ||
76 | public struct ContactData | 85 | public struct ContactData |
diff --git a/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs index 7dddab6..faa9488 100644 --- a/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs +++ b/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs | |||
@@ -2521,7 +2521,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
2521 | prm.m_collisionCategories = m_collisionCategories; | 2521 | prm.m_collisionCategories = m_collisionCategories; |
2522 | prm.m_collisionFlags = m_collisionFlags; | 2522 | prm.m_collisionFlags = m_collisionFlags; |
2523 | 2523 | ||
2524 | if (prm.prim_geom != null) | 2524 | if (prm.prim_geom != IntPtr.Zero) |
2525 | { | 2525 | { |
2526 | 2526 | ||
2527 | if (prm.m_NoColide) | 2527 | if (prm.m_NoColide) |
@@ -2542,7 +2542,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
2542 | // ((OdePrim)_parent).ChildSelectedChange(true); | 2542 | // ((OdePrim)_parent).ChildSelectedChange(true); |
2543 | 2543 | ||
2544 | 2544 | ||
2545 | if (prim_geom != null) | 2545 | if (prim_geom != IntPtr.Zero) |
2546 | { | 2546 | { |
2547 | if (m_NoColide) | 2547 | if (m_NoColide) |
2548 | { | 2548 | { |
diff --git a/OpenSim/Region/Physics/UbitOdePlugin/ODERayCastRequestManager.cs b/OpenSim/Region/Physics/UbitOdePlugin/ODERayCastRequestManager.cs index f449099..561ab1c 100644 --- a/OpenSim/Region/Physics/UbitOdePlugin/ODERayCastRequestManager.cs +++ b/OpenSim/Region/Physics/UbitOdePlugin/ODERayCastRequestManager.cs | |||
@@ -555,7 +555,6 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
555 | break; | 555 | break; |
556 | 556 | ||
557 | default: | 557 | default: |
558 | return; | ||
559 | break; | 558 | break; |
560 | } | 559 | } |
561 | } | 560 | } |
diff --git a/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs b/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs index f8d7195..8878820 100644 --- a/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs +++ b/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs | |||
@@ -515,7 +515,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
515 | odetimestepMS = (int)(1000.0f * ODE_STEPSIZE +0.5f); | 515 | odetimestepMS = (int)(1000.0f * ODE_STEPSIZE +0.5f); |
516 | 516 | ||
517 | ContactgeomsArray = Marshal.AllocHGlobal(contactsPerCollision * d.ContactGeom.unmanagedSizeOf); | 517 | ContactgeomsArray = Marshal.AllocHGlobal(contactsPerCollision * d.ContactGeom.unmanagedSizeOf); |
518 | GlobalContactsArray = GlobalContactsArray = Marshal.AllocHGlobal(maxContactsbeforedeath * d.Contact.unmanagedSizeOf); | 518 | GlobalContactsArray = Marshal.AllocHGlobal(maxContactsbeforedeath * d.Contact.unmanagedSizeOf); |
519 | 519 | ||
520 | m_materialContactsData[(int)Material.Stone].mu = 0.8f; | 520 | m_materialContactsData[(int)Material.Stone].mu = 0.8f; |
521 | m_materialContactsData[(int)Material.Stone].bounce = 0.4f; | 521 | m_materialContactsData[(int)Material.Stone].bounce = 0.4f; |