diff options
author | Kitto Flora | 2009-12-31 16:07:36 -0500 |
---|---|---|
committer | Kitto Flora | 2009-12-31 16:07:36 -0500 |
commit | 3f901d313bfd11070d5260f867c8a73c14f2d109 (patch) | |
tree | 20ecdfa6538c48ee23f9ad155579a102dfdf3898 /OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs | |
parent | Merge branch 'master' into careminster (diff) | |
download | opensim-SC_OLD-3f901d313bfd11070d5260f867c8a73c14f2d109.zip opensim-SC_OLD-3f901d313bfd11070d5260f867c8a73c14f2d109.tar.gz opensim-SC_OLD-3f901d313bfd11070d5260f867c8a73c14f2d109.tar.bz2 opensim-SC_OLD-3f901d313bfd11070d5260f867c8a73c14f2d109.tar.xz |
Vehicle Linear parameter adjustments
Diffstat (limited to 'OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs')
-rw-r--r-- | OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs | 12 |
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() |