diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 6c0d9f2..08c144a 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -76,7 +76,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
76 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 76 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
77 | 77 | ||
78 | private static readonly byte[] BAKE_INDICES = new byte[] { 8, 9, 10, 11, 19, 20 }; | 78 | private static readonly byte[] BAKE_INDICES = new byte[] { 8, 9, 10, 11, 19, 20 }; |
79 | private static readonly byte[] DEFAULT_TEXTURE = AvatarAppearance.GetDefaultTexture().GetBytes(); | 79 | // private static readonly byte[] DEFAULT_TEXTURE = AvatarAppearance.GetDefaultTexture().GetBytes(); |
80 | private static readonly Array DIR_CONTROL_FLAGS = Enum.GetValues(typeof(Dir_ControlFlags)); | 80 | private static readonly Array DIR_CONTROL_FLAGS = Enum.GetValues(typeof(Dir_ControlFlags)); |
81 | private static readonly Vector3 HEAD_ADJUSTMENT = new Vector3(0f, 0f, 0.3f); | 81 | private static readonly Vector3 HEAD_ADJUSTMENT = new Vector3(0f, 0f, 0.3f); |
82 | /// <summary> | 82 | /// <summary> |
@@ -181,7 +181,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
181 | private byte m_state; | 181 | private byte m_state; |
182 | 182 | ||
183 | //Reuse the Vector3 instead of creating a new one on the UpdateMovement method | 183 | //Reuse the Vector3 instead of creating a new one on the UpdateMovement method |
184 | private Vector3 movementvector; | 184 | // private Vector3 movementvector; |
185 | 185 | ||
186 | private bool m_autopilotMoving; | 186 | private bool m_autopilotMoving; |
187 | private Vector3 m_autoPilotTarget; | 187 | private Vector3 m_autoPilotTarget; |
@@ -481,6 +481,12 @@ namespace OpenSim.Region.Framework.Scenes | |||
481 | } | 481 | } |
482 | } | 482 | } |
483 | 483 | ||
484 | public Quaternion Rotation | ||
485 | { | ||
486 | get { return m_bodyRot; } | ||
487 | set { m_bodyRot = value; } | ||
488 | } | ||
489 | |||
484 | /// <summary> | 490 | /// <summary> |
485 | /// If this is true, agent doesn't have a representation in this scene. | 491 | /// If this is true, agent doesn't have a representation in this scene. |
486 | /// this is an agent 'looking into' this scene from a nearby scene(region) | 492 | /// this is an agent 'looking into' this scene from a nearby scene(region) |
@@ -1912,14 +1918,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
1912 | } | 1918 | } |
1913 | 1919 | ||
1914 | 1920 | ||
1915 | AssetBase Animasset = new AssetBase(); | 1921 | AssetBase Animasset = new AssetBase(UUID.Random(), "Random Animation", (sbyte)AssetType.Animation); |
1916 | Animasset.Data = anim.ToBytes(); | 1922 | Animasset.Data = anim.ToBytes(); |
1917 | Animasset.Temporary = true; | 1923 | Animasset.Temporary = true; |
1918 | Animasset.Local = true; | 1924 | Animasset.Local = true; |
1919 | Animasset.FullID = UUID.Random(); | ||
1920 | Animasset.ID = Animasset.FullID.ToString(); | ||
1921 | Animasset.Name = "Random Animation"; | ||
1922 | Animasset.Type = (sbyte)AssetType.Animation; | ||
1923 | Animasset.Description = "dance"; | 1925 | Animasset.Description = "dance"; |
1924 | //BinBVHAnimation bbvhanim = new BinBVHAnimation(Animasset.Data); | 1926 | //BinBVHAnimation bbvhanim = new BinBVHAnimation(Animasset.Data); |
1925 | 1927 | ||
@@ -2068,7 +2070,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2068 | if (heldDown) { move.Z -= 1; } | 2070 | if (heldDown) { move.Z -= 1; } |
2069 | 2071 | ||
2070 | // Is the avatar trying to move? | 2072 | // Is the avatar trying to move? |
2071 | bool moving = (move != Vector3.Zero); | 2073 | // bool moving = (move != Vector3.Zero); |
2072 | bool jumping = m_animTickJump != 0; | 2074 | bool jumping = m_animTickJump != 0; |
2073 | 2075 | ||
2074 | #endregion Inputs | 2076 | #endregion Inputs |
@@ -2256,7 +2258,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2256 | 2258 | ||
2257 | m_perfMonMS = Environment.TickCount; | 2259 | m_perfMonMS = Environment.TickCount; |
2258 | 2260 | ||
2259 | m_rotation = rotation; | 2261 | Rotation = rotation; |
2260 | Vector3 direc = vec * rotation; | 2262 | Vector3 direc = vec * rotation; |
2261 | direc.Normalize(); | 2263 | direc.Normalize(); |
2262 | 2264 | ||
@@ -2320,7 +2322,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2320 | 2322 | ||
2321 | if (m_isChildAgent == false) | 2323 | if (m_isChildAgent == false) |
2322 | { | 2324 | { |
2323 | PhysicsActor actor = m_physicsActor; | 2325 | // PhysicsActor actor = m_physicsActor; |
2324 | 2326 | ||
2325 | // NOTE: Velocity is not the same as m_velocity. Velocity will attempt to | 2327 | // NOTE: Velocity is not the same as m_velocity. Velocity will attempt to |
2326 | // grab the latest PhysicsActor velocity, whereas m_velocity is often | 2328 | // grab the latest PhysicsActor velocity, whereas m_velocity is often |
@@ -3256,7 +3258,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
3256 | Vector3 force = m_forceToApply.Value; | 3258 | Vector3 force = m_forceToApply.Value; |
3257 | 3259 | ||
3258 | m_updateflag = true; | 3260 | m_updateflag = true; |
3259 | movementvector = force; | 3261 | // movementvector = force; |
3260 | Velocity = force; | 3262 | Velocity = force; |
3261 | 3263 | ||
3262 | m_forceToApply = null; | 3264 | m_forceToApply = null; |
@@ -3905,7 +3907,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
3905 | } | 3907 | } |
3906 | else | 3908 | else |
3907 | { | 3909 | { |
3908 | group = Scene.SceneGraph.GetGroupByPrim(data.localID); | 3910 | group = Scene.GetGroupByPrim(data.localID); |
3909 | if (group != null) | 3911 | if (group != null) |
3910 | return GetSOGUpdatePriority(group); | 3912 | return GetSOGUpdatePriority(group); |
3911 | } | 3913 | } |