diff options
author | Justin Clark-Casey (justincc) | 2013-08-14 23:21:51 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-08-14 23:21:51 +0100 |
commit | 73e3ca670d7369d02f2cab71ec734b47ec50c428 (patch) | |
tree | 3d0d24ec0d2de6f011392615855939547a9e07bc /OpenSim/Region/Physics/BulletSPlugin/BSActorAvatarMove.cs | |
parent | minor: remove unused entity transfer config in teleport v2 attachments test (diff) | |
parent | BulletSim: include check for volume detect in check for zeroing avatar motion. (diff) | |
download | opensim-SC_OLD-73e3ca670d7369d02f2cab71ec734b47ec50c428.zip opensim-SC_OLD-73e3ca670d7369d02f2cab71ec734b47ec50c428.tar.gz opensim-SC_OLD-73e3ca670d7369d02f2cab71ec734b47ec50c428.tar.bz2 opensim-SC_OLD-73e3ca670d7369d02f2cab71ec734b47ec50c428.tar.xz |
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin/BSActorAvatarMove.cs')
-rwxr-xr-x | OpenSim/Region/Physics/BulletSPlugin/BSActorAvatarMove.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSActorAvatarMove.cs b/OpenSim/Region/Physics/BulletSPlugin/BSActorAvatarMove.cs index 5f232a4..68bc1b9 100755 --- a/OpenSim/Region/Physics/BulletSPlugin/BSActorAvatarMove.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSActorAvatarMove.cs | |||
@@ -69,7 +69,9 @@ public class BSActorAvatarMove : BSActor | |||
69 | // BSActor.Dispose() | 69 | // BSActor.Dispose() |
70 | public override void Dispose() | 70 | public override void Dispose() |
71 | { | 71 | { |
72 | Enabled = false; | 72 | base.SetEnabled(false); |
73 | // Now that turned off, remove any state we have in the scene. | ||
74 | Refresh(); | ||
73 | } | 75 | } |
74 | 76 | ||
75 | // Called when physical parameters (properties set in Bullet) need to be re-applied. | 77 | // Called when physical parameters (properties set in Bullet) need to be re-applied. |
@@ -181,7 +183,7 @@ public class BSActorAvatarMove : BSActor | |||
181 | if (m_controllingPrim.IsColliding) | 183 | if (m_controllingPrim.IsColliding) |
182 | { | 184 | { |
183 | // If we are colliding with a stationary object, presume we're standing and don't move around | 185 | // If we are colliding with a stationary object, presume we're standing and don't move around |
184 | if (!m_controllingPrim.ColliderIsMoving) | 186 | if (!m_controllingPrim.ColliderIsMoving && !m_controllingPrim.ColliderIsVolumeDetect) |
185 | { | 187 | { |
186 | m_physicsScene.DetailLog("{0},BSCharacter.MoveMotor,collidingWithStationary,zeroingMotion", m_controllingPrim.LocalID); | 188 | m_physicsScene.DetailLog("{0},BSCharacter.MoveMotor,collidingWithStationary,zeroingMotion", m_controllingPrim.LocalID); |
187 | m_controllingPrim.IsStationary = true; | 189 | m_controllingPrim.IsStationary = true; |