From dd6a9ffbc7c086abf66e0ce0ff4da2ee80fdb7fb Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Mon, 24 Mar 2008 21:48:33 +0000 Subject: * OBB: Flipped the -y face normal so ray casting against the -y face correctly results in the point of collision. --- OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes') diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index ddfa332..b2ba70c 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs @@ -1028,7 +1028,7 @@ namespace OpenSim.Region.Environment.Scenes //vertexes[0].z = pos.Z + vertexes[0].z; FaceA[0] = vertexes[0]; - FaceA[3] = vertexes[0]; + FaceB[3] = vertexes[0]; FaceA[4] = vertexes[0]; tScale = AXscale; @@ -1053,7 +1053,7 @@ namespace OpenSim.Region.Environment.Scenes //vertexes[2].z = pos.Z + vertexes[2].z; FaceC[0] = vertexes[2]; - FaceC[3] = vertexes[2]; + FaceD[3] = vertexes[2]; FaceC[5] = vertexes[2]; tScale = new Vector3(AXscale.x, AXscale.y, -AXscale.z); @@ -1101,7 +1101,7 @@ namespace OpenSim.Region.Environment.Scenes // vertexes[6].z = pos.Z + vertexes[6].z; FaceB[2] = vertexes[6]; - FaceB[3] = vertexes[6]; + FaceA[3] = vertexes[6]; FaceB[4] = vertexes[6]; tScale = new Vector3(-AXscale.x, -AXscale.y, -AXscale.z); @@ -1113,7 +1113,7 @@ namespace OpenSim.Region.Environment.Scenes // vertexes[7].z = pos.Z + vertexes[7].z; FaceD[2] = vertexes[7]; - FaceD[3] = vertexes[7]; + FaceC[3] = vertexes[7]; FaceD[5] = vertexes[7]; #endregion -- cgit v1.1