From fdf8732cd712d8a5799a817e61d4c68e204ba9a2 Mon Sep 17 00:00:00 2001 From: Robert Adams Date: Fri, 28 Dec 2012 16:29:16 -0800 Subject: ScenePresence passes the avatar rotation down to the physics engine. This will be a no-op for ODE but enables asymmetrical avatars for BulletSim. --- OpenSim/Region/Framework/Scenes/ScenePresence.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'OpenSim/Region') 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 set { m_bodyRot = value; + if (PhysicsActor != null) + { + PhysicsActor.Orientation = m_bodyRot; + } // m_log.DebugFormat("[SCENE PRESENCE]: Body rot for {0} set to {1}", Name, m_bodyRot); } } -- cgit v1.1