diff options
author | Melanie | 2012-01-24 01:17:41 +0000 |
---|---|---|
committer | Melanie | 2012-01-24 01:17:41 +0000 |
commit | 090bf7acca33996786d4a1245c7954d7f9784105 (patch) | |
tree | b15f1d856cb10b36a52eb7715730b6b1652fbe47 /OpenSim | |
parent | Correct some SQL syntax (diff) | |
download | opensim-SC-090bf7acca33996786d4a1245c7954d7f9784105.zip opensim-SC-090bf7acca33996786d4a1245c7954d7f9784105.tar.gz opensim-SC-090bf7acca33996786d4a1245c7954d7f9784105.tar.bz2 opensim-SC-090bf7acca33996786d4a1245c7954d7f9784105.tar.xz |
Correct a coordinate to make the viewer like it
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Framework/RegionSettings.cs | 4 | ||||
-rw-r--r-- | OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Framework/RegionSettings.cs b/OpenSim/Framework/RegionSettings.cs index 7cdfc1c..f392889 100644 --- a/OpenSim/Framework/RegionSettings.cs +++ b/OpenSim/Framework/RegionSettings.cs | |||
@@ -58,7 +58,7 @@ namespace OpenSim.Framework | |||
58 | Pitch = (float)-Math.Atan2(dir.Z, Math.Sqrt(dir.X * dir.X + dir.Y * dir.Y)); | 58 | Pitch = (float)-Math.Atan2(dir.Z, Math.Sqrt(dir.X * dir.X + dir.Y * dir.Y)); |
59 | } | 59 | } |
60 | 60 | ||
61 | public Vector3 GetLocation(Vector3 pos, Quaternion rot) | 61 | public Vector3 GetLocation(Quaternion rot) |
62 | { | 62 | { |
63 | Quaternion y = Quaternion.CreateFromEulers(0, 0, Yaw); | 63 | Quaternion y = Quaternion.CreateFromEulers(0, 0, Yaw); |
64 | Quaternion p = Quaternion.CreateFromEulers(0, Pitch, 0); | 64 | Quaternion p = Quaternion.CreateFromEulers(0, Pitch, 0); |
@@ -69,7 +69,7 @@ namespace OpenSim.Framework | |||
69 | rot.W = -rot.W; | 69 | rot.W = -rot.W; |
70 | offset *= rot; | 70 | offset *= rot; |
71 | 71 | ||
72 | return pos + offset; | 72 | return offset; |
73 | } | 73 | } |
74 | } | 74 | } |
75 | 75 | ||
diff --git a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs index ea8d396..acd22e9 100644 --- a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs +++ b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs | |||
@@ -1358,7 +1358,7 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
1358 | 1358 | ||
1359 | foreach (SpawnPoint sp in settings.SpawnPoints()) | 1359 | foreach (SpawnPoint sp in settings.SpawnPoints()) |
1360 | { | 1360 | { |
1361 | spawnPoints.Add(sp.GetLocation(telehub.AbsolutePosition, telehub.GroupRotation)); | 1361 | spawnPoints.Add(sp.GetLocation(telehub.GroupRotation)); |
1362 | } | 1362 | } |
1363 | 1363 | ||
1364 | client.SendTelehubInfo(settings.TelehubObject, | 1364 | client.SendTelehubInfo(settings.TelehubObject, |