diff options
author | Kitto Flora | 2010-07-16 22:17:06 +0000 |
---|---|---|
committer | Kitto Flora | 2010-07-16 22:17:06 +0000 |
commit | 236c0f8e8b5f9ef86c8614b53e5f404754c9e8d9 (patch) | |
tree | 6658bba2cb1f112d83d0eb3182455c674b51f4ad | |
parent | Fix showing CreateSelected on all parts of a rez (diff) | |
download | opensim-SC-236c0f8e8b5f9ef86c8614b53e5f404754c9e8d9.zip opensim-SC-236c0f8e8b5f9ef86c8614b53e5f404754c9e8d9.tar.gz opensim-SC-236c0f8e8b5f9ef86c8614b53e5f404754c9e8d9.tar.bz2 opensim-SC-236c0f8e8b5f9ef86c8614b53e5f404754c9e8d9.tar.xz |
Fix llSetForecAndTorque([0]) stops linear motion. Mantis #187
-rw-r--r-- | OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs index 6b17ce7..7e70db9 100644 --- a/OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs +++ b/OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs | |||
@@ -1735,6 +1735,13 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
1735 | if (m_isphysical) | 1735 | if (m_isphysical) |
1736 | { | 1736 | { |
1737 | disableBodySoft(); | 1737 | disableBodySoft(); |
1738 | |||
1739 | if (Body != IntPtr.Zero) | ||
1740 | { | ||
1741 | d.BodySetLinearVel(Body, 0f, 0f, 0f); | ||
1742 | d.BodySetForce(Body, 0, 0, 0); | ||
1743 | enableBodySoft(); | ||
1744 | } | ||
1738 | } | 1745 | } |
1739 | } | 1746 | } |
1740 | else | 1747 | else |
@@ -1756,6 +1763,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
1756 | d.GeomSetCategoryBits(prim_geom, (int)m_collisionCategories); | 1763 | d.GeomSetCategoryBits(prim_geom, (int)m_collisionCategories); |
1757 | d.GeomSetCollideBits(prim_geom, (int)m_collisionFlags); | 1764 | d.GeomSetCollideBits(prim_geom, (int)m_collisionFlags); |
1758 | } | 1765 | } |
1766 | /* Uhhh - stop the motion if the object is _selected_!! | ||
1759 | if (m_isphysical) | 1767 | if (m_isphysical) |
1760 | { | 1768 | { |
1761 | if (Body != IntPtr.Zero) | 1769 | if (Body != IntPtr.Zero) |
@@ -1765,6 +1773,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
1765 | enableBodySoft(); | 1773 | enableBodySoft(); |
1766 | } | 1774 | } |
1767 | } | 1775 | } |
1776 | */ | ||
1768 | } | 1777 | } |
1769 | 1778 | ||
1770 | resetCollisionAccounting(); | 1779 | resetCollisionAccounting(); |