aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs
diff options
context:
space:
mode:
authorUbitUmarov2015-09-04 09:42:33 +0100
committerUbitUmarov2015-09-04 09:42:33 +0100
commitac4b2b2f50d03bf94e63902961d91604734395fb (patch)
tree9efafaa4022b6c6d8e93efb527d1b342587abd3b /OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs
parenta bit better addAvatar() call chain (diff)
downloadopensim-SC_OLD-ac4b2b2f50d03bf94e63902961d91604734395fb.zip
opensim-SC_OLD-ac4b2b2f50d03bf94e63902961d91604734395fb.tar.gz
opensim-SC_OLD-ac4b2b2f50d03bf94e63902961d91604734395fb.tar.bz2
opensim-SC_OLD-ac4b2b2f50d03bf94e63902961d91604734395fb.tar.xz
normalise physics plugins to return fps as (simulated time / requested simulation time). improved a bit old ode simulations per call math
Diffstat (limited to '')
-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>