diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/OpenSim.Region/Scenes/Entity.cs | 9 | ||||
-rw-r--r-- | OpenSim/OpenSim.Region/Scenes/Scene.cs | 2 | ||||
-rw-r--r-- | OpenSim/OpenSim.Region/Scenes/ScenePresence.Update.cs | 22 | ||||
-rw-r--r-- | OpenSim/OpenSim.Region/Scenes/ScenePresence.cs | 4 |
4 files changed, 16 insertions, 21 deletions
diff --git a/OpenSim/OpenSim.Region/Scenes/Entity.cs b/OpenSim/OpenSim.Region/Scenes/Entity.cs index 2376fc4..bd9309b 100644 --- a/OpenSim/OpenSim.Region/Scenes/Entity.cs +++ b/OpenSim/OpenSim.Region/Scenes/Entity.cs | |||
@@ -38,10 +38,9 @@ namespace OpenSim.Region.Scenes | |||
38 | public abstract class Entity : IScriptReadonlyEntity | 38 | public abstract class Entity : IScriptReadonlyEntity |
39 | { | 39 | { |
40 | public libsecondlife.LLUUID uuid; | 40 | public libsecondlife.LLUUID uuid; |
41 | public LLVector3 velocity; | ||
42 | public Quaternion rotation; | 41 | public Quaternion rotation; |
43 | protected List<Entity> children; | 42 | protected List<Entity> children; |
44 | protected LLVector3 m_pos; | 43 | |
45 | protected PhysicsActor _physActor; | 44 | protected PhysicsActor _physActor; |
46 | protected Scene m_world; | 45 | protected Scene m_world; |
47 | protected string m_name; | 46 | protected string m_name; |
@@ -54,6 +53,7 @@ namespace OpenSim.Region.Scenes | |||
54 | get { return m_name; } | 53 | get { return m_name; } |
55 | } | 54 | } |
56 | 55 | ||
56 | protected LLVector3 m_pos; | ||
57 | /// <summary> | 57 | /// <summary> |
58 | /// | 58 | /// |
59 | /// </summary> | 59 | /// </summary> |
@@ -92,6 +92,11 @@ namespace OpenSim.Region.Scenes | |||
92 | } | 92 | } |
93 | } | 93 | } |
94 | 94 | ||
95 | public LLVector3 velocity; | ||
96 | |||
97 | /// <summary> | ||
98 | /// | ||
99 | /// </summary> | ||
95 | public virtual LLVector3 Velocity | 100 | public virtual LLVector3 Velocity |
96 | { | 101 | { |
97 | get | 102 | get |
diff --git a/OpenSim/OpenSim.Region/Scenes/Scene.cs b/OpenSim/OpenSim.Region/Scenes/Scene.cs index 74b4945..63a6e37 100644 --- a/OpenSim/OpenSim.Region/Scenes/Scene.cs +++ b/OpenSim/OpenSim.Region/Scenes/Scene.cs | |||
@@ -739,7 +739,7 @@ namespace OpenSim.Region.Scenes | |||
739 | /// <summary> | 739 | /// <summary> |
740 | /// | 740 | /// |
741 | /// </summary> | 741 | /// </summary> |
742 | protected void InformClientOfNeighbours(IClientAPI remoteClient) | 742 | public void InformClientOfNeighbours(IClientAPI remoteClient) |
743 | { | 743 | { |
744 | // Console.WriteLine("informing client of neighbouring regions"); | 744 | // Console.WriteLine("informing client of neighbouring regions"); |
745 | List<RegionInfo> neighbours = this.commsManager.GridServer.RequestNeighbours(this.m_regInfo); | 745 | List<RegionInfo> neighbours = this.commsManager.GridServer.RequestNeighbours(this.m_regInfo); |
diff --git a/OpenSim/OpenSim.Region/Scenes/ScenePresence.Update.cs b/OpenSim/OpenSim.Region/Scenes/ScenePresence.Update.cs index 3885c0d..b14db31 100644 --- a/OpenSim/OpenSim.Region/Scenes/ScenePresence.Update.cs +++ b/OpenSim/OpenSim.Region/Scenes/ScenePresence.Update.cs | |||
@@ -76,26 +76,14 @@ namespace OpenSim.Region.Scenes | |||
76 | /// <summary> | 76 | /// <summary> |
77 | /// | 77 | /// |
78 | /// </summary> | 78 | /// </summary> |
79 | /// <returns></returns> | ||
80 | public ObjectUpdatePacket CreateUpdatePacket() | ||
81 | { | ||
82 | return null; | ||
83 | } | ||
84 | |||
85 | /// <summary> | ||
86 | /// | ||
87 | /// </summary> | ||
88 | public void SendInitialPosition() | 79 | public void SendInitialPosition() |
89 | { | 80 | { |
90 | this.ControllingClient.SendAvatarData(m_regionInfo.RegionHandle, this.firstname, this.lastname, this.uuid, this.LocalId, this.Pos); | 81 | this.ControllingClient.SendAvatarData(m_regionInfo.RegionHandle, this.firstname, this.lastname, this.uuid, this.LocalId, this.Pos); |
91 | } | 82 | if (this.newAvatar) |
92 | 83 | { | |
93 | /// <summary> | 84 | this.m_world.InformClientOfNeighbours(this.ControllingClient); |
94 | /// | 85 | this.newAvatar = false; |
95 | /// </summary> | 86 | } |
96 | public void SendOurAppearance() | ||
97 | { | ||
98 | |||
99 | } | 87 | } |
100 | 88 | ||
101 | /// <summary> | 89 | /// <summary> |
diff --git a/OpenSim/OpenSim.Region/Scenes/ScenePresence.cs b/OpenSim/OpenSim.Region/Scenes/ScenePresence.cs index 3fbda39..e22528a 100644 --- a/OpenSim/OpenSim.Region/Scenes/ScenePresence.cs +++ b/OpenSim/OpenSim.Region/Scenes/ScenePresence.cs | |||
@@ -61,6 +61,7 @@ namespace OpenSim.Region.Scenes | |||
61 | private ulong m_regionHandle; | 61 | private ulong m_regionHandle; |
62 | private bool childAvatar = false; | 62 | private bool childAvatar = false; |
63 | private bool newForce = false; | 63 | private bool newForce = false; |
64 | private bool newAvatar = false; | ||
64 | 65 | ||
65 | protected RegionInfo m_regionInfo; | 66 | protected RegionInfo m_regionInfo; |
66 | /// <summary> | 67 | /// <summary> |
@@ -145,6 +146,7 @@ namespace OpenSim.Region.Scenes | |||
145 | { | 146 | { |
146 | //this.childAvatar = false; | 147 | //this.childAvatar = false; |
147 | this.Pos = pos; | 148 | this.Pos = pos; |
149 | this.newAvatar = true; | ||
148 | } | 150 | } |
149 | 151 | ||
150 | protected void DownGradeAvatar() | 152 | protected void DownGradeAvatar() |
@@ -179,7 +181,7 @@ namespace OpenSim.Region.Scenes | |||
179 | NewForce force = this.forcesList[i]; | 181 | NewForce force = this.forcesList[i]; |
180 | 182 | ||
181 | this.updateflag = true; | 183 | this.updateflag = true; |
182 | this.Velocity = new LLVector3(force.X, force.Y, force.Z); //shouldn't really be doing this | 184 | this.Velocity = new LLVector3(force.X, force.Y, force.Z); |
183 | this.newForce = true; | 185 | this.newForce = true; |
184 | } | 186 | } |
185 | for (int i = 0; i < this.forcesList.Count; i++) | 187 | for (int i = 0; i < this.forcesList.Count; i++) |