diff options
author | Teravus Ovares (Dan Olivares) | 2009-10-10 04:01:36 -0400 |
---|---|---|
committer | Teravus Ovares (Dan Olivares) | 2009-10-10 04:01:36 -0400 |
commit | 8271528b1fe49d99cf5b64d3644864ba4aa097c1 (patch) | |
tree | aed5d2f4985f68e9e20d26c8758bef740a8a57e4 /OpenSim/Region/Framework/Scenes/ScenePresence.cs | |
parent | Merge branch 'master' of ssh://MyConnection/var/git/opensim (diff) | |
download | opensim-SC-8271528b1fe49d99cf5b64d3644864ba4aa097c1.zip opensim-SC-8271528b1fe49d99cf5b64d3644864ba4aa097c1.tar.gz opensim-SC-8271528b1fe49d99cf5b64d3644864ba4aa097c1.tar.bz2 opensim-SC-8271528b1fe49d99cf5b64d3644864ba4aa097c1.tar.xz |
* comment out the velocity test, using updates every 500 ms as set in ScenePresence.AddToPhysicalScene.
* This causes time to be counted in ODECharacter and, when a collision occurs, the physics scene will report the collisions only if the the difference of last time it reported the collisions from now was more then the set ms.
* This is cool because the time accrues while collisions are not taking place and when they do take place again, you get an immediate update.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index e20b8f2..15fb11f 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -3420,8 +3420,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
3420 | if (e == null) | 3420 | if (e == null) |
3421 | return; | 3421 | return; |
3422 | 3422 | ||
3423 | if ((Math.Abs(Velocity.X) > 0.1e-9f) || (Math.Abs(Velocity.Y) > 0.1e-9f)) | 3423 | //if ((Math.Abs(Velocity.X) > 0.1e-9f) || (Math.Abs(Velocity.Y) > 0.1e-9f)) |
3424 | UpdateMovementAnimations(); | 3424 | // The Physics Scene will send updates every 500 ms grep: m_physicsActor.SubscribeEvents( |
3425 | // as of this comment the interval is set in AddToPhysicalScene | ||
3426 | UpdateMovementAnimations(); | ||
3425 | 3427 | ||
3426 | if (m_invulnerable) | 3428 | if (m_invulnerable) |
3427 | return; | 3429 | return; |