mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Remove setter from SP.OffsetPosition, since all sets should flow through SP.AbsolutePosition
OffsetPosition is also misnamed - it returns the absolute position and never contains an offset.
This commit is contained in:
@@ -26,8 +26,10 @@
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Security.Permissions;
|
||||
using log4net;
|
||||
using OpenSim.Framework;
|
||||
using OpenMetaverse;
|
||||
|
||||
@@ -35,6 +37,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
{
|
||||
public abstract class EntityBase : ISceneEntity
|
||||
{
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
/// <summary>
|
||||
/// The scene to which this entity belongs
|
||||
/// </summary>
|
||||
@@ -71,12 +75,15 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
protected Vector3 m_pos;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// Absolute position of this entity in a scene.
|
||||
/// </summary>
|
||||
public virtual Vector3 AbsolutePosition
|
||||
{
|
||||
get { return m_pos; }
|
||||
set { m_pos = value; }
|
||||
set
|
||||
{
|
||||
m_pos = value;
|
||||
}
|
||||
}
|
||||
|
||||
protected Vector3 m_velocity;
|
||||
|
||||
Reference in New Issue
Block a user