Simplify and streamline telehub editing code. Verify rotations and fix

spwan point positioning on rotated telehubs.
This commit is contained in:
Melanie
2012-01-24 01:48:38 +01:00
parent d51ae0ecac
commit cc02f78d4e
3 changed files with 31 additions and 59 deletions

View File

@@ -47,6 +47,7 @@ namespace OpenSim.Framework
// Next we need to rotate this vector into the spawn point's
// coordinate system
rot.W = -rot.W;
offset = offset * rot;
Vector3 dir = Vector3.Normalize(offset);
@@ -66,7 +67,6 @@ namespace OpenSim.Framework
Vector3 dir = new Vector3(1, 0, 0) * p * y;
Vector3 offset = dir * (float)Distance;
rot.W = -rot.W;
offset *= rot;
return pos + offset;