aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs b/OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs
index 326fe97..b884b62 100644
--- a/OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs
+++ b/OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs
@@ -168,6 +168,10 @@ namespace OpenSim.Region.Physics.OdePlugin
168 m_density = density; 168 m_density = density;
169 m_mass = 80f; // sure we have a default 169 m_mass = 80f; // sure we have a default
170 170
171 // force lower density for testing
172 m_density = 3.0f;
173
174
171 mu = parent_scene.AvatarFriction; 175 mu = parent_scene.AvatarFriction;
172 176
173 walkDivisor = walk_divisor; 177 walkDivisor = walk_divisor;
@@ -1184,7 +1188,7 @@ namespace OpenSim.Region.Physics.OdePlugin
1184 // destroy avatar capsule and related ODE data 1188 // destroy avatar capsule and related ODE data
1185 AvatarGeomAndBodyDestroy(); 1189 AvatarGeomAndBodyDestroy();
1186 } 1190 }
1187 1191 m_freemove = false;
1188 m_isPhysical = NewStatus; 1192 m_isPhysical = NewStatus;
1189 } 1193 }
1190 } 1194 }
@@ -1236,7 +1240,7 @@ namespace OpenSim.Region.Physics.OdePlugin
1236 + (Amotor == IntPtr.Zero ? "Amotor " : "")); 1240 + (Amotor == IntPtr.Zero ? "Amotor " : ""));
1237 } 1241 }
1238 } 1242 }
1239 1243 m_freemove = false;
1240 m_pidControllerActive = true; 1244 m_pidControllerActive = true;
1241 } 1245 }
1242 else 1246 else
@@ -1250,6 +1254,7 @@ namespace OpenSim.Region.Physics.OdePlugin
1250 if (Body != IntPtr.Zero) 1254 if (Body != IntPtr.Zero)
1251 d.BodySetPosition(Body, newPos.X, newPos.Y, newPos.Z); 1255 d.BodySetPosition(Body, newPos.X, newPos.Y, newPos.Z);
1252 _position = newPos; 1256 _position = newPos;
1257 m_freemove = false;
1253 m_pidControllerActive = true; 1258 m_pidControllerActive = true;
1254 } 1259 }
1255 1260
@@ -1260,6 +1265,7 @@ namespace OpenSim.Region.Physics.OdePlugin
1260 private void changeVelocity(Vector3 newVel) 1265 private void changeVelocity(Vector3 newVel)
1261 { 1266 {
1262 m_pidControllerActive = true; 1267 m_pidControllerActive = true;
1268 m_freemove = false;
1263 _target_velocity = newVel; 1269 _target_velocity = newVel;
1264 } 1270 }
1265 1271