aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs')
-rw-r--r--OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs13
1 files changed, 4 insertions, 9 deletions
diff --git a/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs b/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs
index 26e8e54..e0f4c66 100644
--- a/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs
+++ b/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs
@@ -1224,16 +1224,13 @@ namespace OpenSim.Region.Physics.OdePlugin
1224 1224
1225 public override PhysicsActor AddAvatar(string avName, Vector3 position, Vector3 velocity, Vector3 size, bool isFlying) 1225 public override PhysicsActor AddAvatar(string avName, Vector3 position, Vector3 velocity, Vector3 size, bool isFlying)
1226 { 1226 {
1227 return AddAvatar(avName, position, size, isFlying); 1227 return null;
1228 } 1228 }
1229 1229
1230 public override PhysicsActor AddAvatar(uint localID, string avName, Vector3 position, Vector3 size, float feetOffset, bool isFlying) 1230 public override PhysicsActor AddAvatar(uint localID, string avName, Vector3 position, Vector3 size, float feetOffset, bool isFlying)
1231 { 1231 {
1232 Vector3 pos; 1232 OdeCharacter newAv = new OdeCharacter(localID, avName, this, position,
1233 pos.X = position.X; 1233 size, feetOffset, avDensity, avMovementDivisorWalk, avMovementDivisorRun);
1234 pos.Y = position.Y;
1235 pos.Z = position.Z;
1236 OdeCharacter newAv = new OdeCharacter(localID,avName, this, pos, size, feetOffset, avDensity, avMovementDivisorWalk, avMovementDivisorRun);
1237 newAv.Flying = isFlying; 1234 newAv.Flying = isFlying;
1238 newAv.MinimumGroundFlightOffset = minimumGroundFlightOffset; 1235 newAv.MinimumGroundFlightOffset = minimumGroundFlightOffset;
1239 1236
@@ -1863,9 +1860,7 @@ namespace OpenSim.Region.Physics.OdePlugin
1863 m_lastframe = DateTime.UtcNow; // skip also the time lost 1860 m_lastframe = DateTime.UtcNow; // skip also the time lost
1864 } 1861 }
1865 } 1862 }
1866 1863 return (float)nodeframes * ODE_STEPSIZE / timeStep * 1000.0f;
1867// return nodeframes * ODE_STEPSIZE; // return real simulated time
1868 return 1000 * nodeframes; // return steps for now * 1000 to keep core happy
1869 } 1864 }
1870 1865
1871 /// <summary> 1866 /// <summary>