aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs')
-rw-r--r--OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs12
1 files changed, 8 insertions, 4 deletions
diff --git a/OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs
index 0179240..6e6b44f 100644
--- a/OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs
+++ b/OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs
@@ -2296,11 +2296,15 @@ Console.WriteLine(" JointCreateFixed");
2296 public override bool IsPhysical 2296 public override bool IsPhysical
2297 { 2297 {
2298 get { return m_isphysical; } 2298 get { return m_isphysical; }
2299 set { 2299 set
2300 {
2300 m_isphysical = value; 2301 m_isphysical = value;
2301 if (!m_isphysical) // Zero the remembered last velocity 2302 if (!m_isphysical)
2302 m_lastVelocity = Vector3.Zero; 2303 { // Zero the remembered last velocity
2303 } 2304 m_lastVelocity = Vector3.Zero;
2305 if (m_vehicle.Type != Vehicle.TYPE_NONE) m_vehicle.Halt();
2306 }
2307 }
2304 } 2308 }
2305 2309
2306 public void setPrimForRemoval() 2310 public void setPrimForRemoval()