aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/UbitOdePlugin/ODEDynamics.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Physics/UbitOdePlugin/ODEDynamics.cs')
-rw-r--r--OpenSim/Region/Physics/UbitOdePlugin/ODEDynamics.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/UbitOdePlugin/ODEDynamics.cs b/OpenSim/Region/Physics/UbitOdePlugin/ODEDynamics.cs
index 4f82c24..0fabb56 100644
--- a/OpenSim/Region/Physics/UbitOdePlugin/ODEDynamics.cs
+++ b/OpenSim/Region/Physics/UbitOdePlugin/ODEDynamics.cs
@@ -120,6 +120,16 @@ namespace OpenSim.Region.Physics.OdePlugin
120 private float m_lmEfect = 0; // current linear motor eficiency 120 private float m_lmEfect = 0; // current linear motor eficiency
121 private float m_amEfect = 0; // current angular motor eficiency 121 private float m_amEfect = 0; // current angular motor eficiency
122 122
123 public bool EngineActive
124 {
125 get
126 {
127 if (m_lmEfect > 0.01)
128 return true;
129 return false;
130 }
131 }
132
123 133
124 public ODEDynamics(OdePrim rootp) 134 public ODEDynamics(OdePrim rootp)
125 { 135 {
@@ -152,6 +162,7 @@ namespace OpenSim.Region.Physics.OdePlugin
152 m_linearMotorTimescale = vd.m_linearMotorTimescale; 162 m_linearMotorTimescale = vd.m_linearMotorTimescale;
153 if (m_linearMotorTimescale < timestep) m_linearMotorTimescale = timestep; 163 if (m_linearMotorTimescale < timestep) m_linearMotorTimescale = timestep;
154 164
165
155 m_linearMotorOffset = vd.m_linearMotorOffset; 166 m_linearMotorOffset = vd.m_linearMotorOffset;
156 167
157 //Angular properties 168 //Angular properties