From 45c652390472626084738383d465911d8d9d507c Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Thu, 29 May 2008 20:50:38 +0000 Subject: * Fixes a few taper/top-sheer situations that were previously having issues. --- OpenSim/Region/Physics/Meshing/Extruder.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/Physics/Meshing/Extruder.cs b/OpenSim/Region/Physics/Meshing/Extruder.cs index 480ffda..154a423 100644 --- a/OpenSim/Region/Physics/Meshing/Extruder.cs +++ b/OpenSim/Region/Physics/Meshing/Extruder.cs @@ -92,7 +92,7 @@ namespace OpenSim.Region.Physics.Meshing //Push the top of the object over by the Top Shear amount v.X += pushX * size.X; - v.Y += pushY * size.X; + v.Y += pushY * size.Y; if (twistTop != 0) { @@ -118,7 +118,7 @@ namespace OpenSim.Region.Physics.Meshing v.Y *= (size.Y * ((taperTopFactorY + taperBotFactorY) / 2)); v.X += (pushX / 2) * size.X; - v.Y += (pushY / 2) * size.X; + v.Y += (pushY / 2) * size.Y; //Push the top of the object over by the Top Shear amount if (twistMid != 0) { -- cgit v1.1