* Fixes a few taper/top-sheer situations that were previously having issues.

0.6.0-stable
Teravus Ovares 2008-05-29 20:50:38 +00:00
parent 918f887c0c
commit 45c6523904
1 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ namespace OpenSim.Region.Physics.Meshing
//Push the top of the object over by the Top Shear amount //Push the top of the object over by the Top Shear amount
v.X += pushX * size.X; v.X += pushX * size.X;
v.Y += pushY * size.X; v.Y += pushY * size.Y;
if (twistTop != 0) if (twistTop != 0)
{ {
@ -118,7 +118,7 @@ namespace OpenSim.Region.Physics.Meshing
v.Y *= (size.Y * ((taperTopFactorY + taperBotFactorY) / 2)); v.Y *= (size.Y * ((taperTopFactorY + taperBotFactorY) / 2));
v.X += (pushX / 2) * size.X; 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 //Push the top of the object over by the Top Shear amount
if (twistMid != 0) if (twistMid != 0)
{ {