diff options
author | Robert Adams | 2012-12-28 16:29:16 -0800 |
---|---|---|
committer | Robert Adams | 2012-12-28 16:29:16 -0800 |
commit | fdf8732cd712d8a5799a817e61d4c68e204ba9a2 (patch) | |
tree | 5d61c99f244d851dc4e021f7f64c8b6958ab254b /OpenSim/Region/Framework/Scenes | |
parent | BulletSim: add 'AvatarAlwaysRunFactor' parameter and use in setTargetVelocity (diff) | |
download | opensim-SC-fdf8732cd712d8a5799a817e61d4c68e204ba9a2.zip opensim-SC-fdf8732cd712d8a5799a817e61d4c68e204ba9a2.tar.gz opensim-SC-fdf8732cd712d8a5799a817e61d4c68e204ba9a2.tar.bz2 opensim-SC-fdf8732cd712d8a5799a817e61d4c68e204ba9a2.tar.xz |
ScenePresence passes the avatar rotation down to the physics engine. This will be a no-op for ODE but enables asymmetrical avatars for BulletSim.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index a60c551..0219540 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -560,6 +560,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
560 | set | 560 | set |
561 | { | 561 | { |
562 | m_bodyRot = value; | 562 | m_bodyRot = value; |
563 | if (PhysicsActor != null) | ||
564 | { | ||
565 | PhysicsActor.Orientation = m_bodyRot; | ||
566 | } | ||
563 | // m_log.DebugFormat("[SCENE PRESENCE]: Body rot for {0} set to {1}", Name, m_bodyRot); | 567 | // m_log.DebugFormat("[SCENE PRESENCE]: Body rot for {0} set to {1}", Name, m_bodyRot); |
564 | } | 568 | } |
565 | } | 569 | } |