2
« on: November 12, 2014, 10:40:16 PM »
Hello,I had a question.I got a picture which looks like a parallelogram.
____________________
/___________________/
I use Type.Filled and FillDirection.Horizontal.But when I drag the fillAmount ,I get a picture:
__________ __________
/__________| not /_________/
if (mFillDirection == FillDirection.Horizontal)
{
float fill = (u.z - u.x) * mFillAmount;
if (mInvert)
{
v.x = v.z - (v.z - v.x) * mFillAmount;
u.x = u.z - fill;
}
else
{
v.z = v.x + (v.z - v.x) * mFillAmount; (What should I do)?
u.z = u.x + fill;
}
}