Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ WingFrame()

void Terraria.Player.WingFrame ( bool wingFlap)
inline

Definition at line 27719 of file Player.cs.

27720 {
27721 bool flag = wingsLogic != wings;
27722 if (wings == 4)
27723 {
27724 if (wingFlap || jump > 0)
27725 {
27726 rocketDelay2--;
27727 if (rocketDelay2 <= 0)
27728 {
27730 rocketDelay2 = 60;
27731 }
27732 int num = 2;
27733 if (TryingToHoverUp)
27734 {
27735 num = 4;
27736 }
27737 for (int i = 0; i < num; i++)
27738 {
27739 int type = 6;
27740 if (head == 41)
27741 {
27742 _ = body;
27743 _ = 24;
27744 }
27745 float scale = 1.75f;
27746 int alpha = 100;
27747 float x = position.X + (float)(width / 2) + 16f;
27748 if (direction > 0)
27749 {
27750 x = position.X + (float)(width / 2) - 26f;
27751 }
27752 float num2 = position.Y + (float)height - 18f;
27753 if (i == 1 || i == 3)
27754 {
27755 x = position.X + (float)(width / 2) + 8f;
27756 if (direction > 0)
27757 {
27758 x = position.X + (float)(width / 2) - 20f;
27759 }
27760 num2 += 6f;
27761 }
27762 if (i > 1)
27763 {
27764 num2 += velocity.Y;
27765 }
27766 int num3 = Dust.NewDust(new Vector2(x, num2), 8, 8, type, 0f, 0f, alpha, default(Color), scale);
27767 Main.dust[num3].velocity.X *= 0.1f;
27768 Main.dust[num3].velocity.Y = Main.dust[num3].velocity.Y * 1f + 2f * gravDir - velocity.Y * 0.3f;
27769 Main.dust[num3].noGravity = true;
27770 Main.dust[num3].noLightEmittence = flag;
27771 Main.dust[num3].shader = GameShaders.Armor.GetSecondaryShader(cWings, this);
27772 if (num == 4)
27773 {
27774 Main.dust[num3].velocity.Y += 6f;
27775 }
27776 }
27778 if (wingFrameCounter > 4)
27779 {
27780 wingFrame++;
27781 wingFrameCounter = 0;
27782 if (wingFrame >= 3)
27783 {
27784 wingFrame = 0;
27785 }
27786 }
27787 }
27788 else if (!controlJump || velocity.Y == 0f)
27789 {
27790 wingFrame = 3;
27791 }
27792 return;
27793 }
27795 {
27796 if (!flag && velocity.Y != 0f)
27797 {
27798 Lighting.AddLight(base.Bottom, 0.3f, 0.1f, 0.4f);
27799 }
27800 return;
27801 }
27802 if (wings == 22)
27803 {
27804 if (!controlJump)
27805 {
27806 wingFrame = 0;
27807 wingFrameCounter = 0;
27808 }
27809 else if (wingTime > 0f)
27810 {
27812 {
27813 if (velocity.X != 0f)
27814 {
27816 int num4 = 2;
27817 if (wingFrameCounter < num4)
27818 {
27819 wingFrame = 1;
27820 return;
27821 }
27822 if (wingFrameCounter < num4 * 2)
27823 {
27824 wingFrame = 2;
27825 return;
27826 }
27827 if (wingFrameCounter < num4 * 3)
27828 {
27829 wingFrame = 3;
27830 return;
27831 }
27832 if (wingFrameCounter < num4 * 4 - 1)
27833 {
27834 wingFrame = 2;
27835 return;
27836 }
27837 wingFrame = 2;
27838 wingFrameCounter = 0;
27839 }
27840 else
27841 {
27843 int num5 = 6;
27844 if (wingFrameCounter < num5)
27845 {
27846 wingFrame = 4;
27847 return;
27848 }
27849 if (wingFrameCounter < num5 * 2)
27850 {
27851 wingFrame = 5;
27852 return;
27853 }
27854 if (wingFrameCounter < num5 * 3 - 1)
27855 {
27856 wingFrame = 4;
27857 return;
27858 }
27859 wingFrame = 4;
27860 wingFrameCounter = 0;
27861 }
27862 }
27863 else
27864 {
27866 int num6 = 2;
27867 if (wingFrameCounter < num6)
27868 {
27869 wingFrame = 4;
27870 return;
27871 }
27872 if (wingFrameCounter < num6 * 2)
27873 {
27874 wingFrame = 5;
27875 return;
27876 }
27877 if (wingFrameCounter < num6 * 3)
27878 {
27879 wingFrame = 6;
27880 return;
27881 }
27882 if (wingFrameCounter < num6 * 4 - 1)
27883 {
27884 wingFrame = 5;
27885 return;
27886 }
27887 wingFrame = 5;
27888 wingFrameCounter = 0;
27889 }
27890 }
27891 else
27892 {
27894 int num7 = 6;
27895 if (wingFrameCounter < num7)
27896 {
27897 wingFrame = 4;
27898 return;
27899 }
27900 if (wingFrameCounter < num7 * 2)
27901 {
27902 wingFrame = 5;
27903 return;
27904 }
27905 if (wingFrameCounter < num7 * 3 - 1)
27906 {
27907 wingFrame = 4;
27908 return;
27909 }
27910 wingFrame = 4;
27911 wingFrameCounter = 0;
27912 }
27913 return;
27914 }
27915 if (wings == 12)
27916 {
27917 if (wingFlap || jump > 0)
27918 {
27920 int num8 = 5;
27921 if (wingFrameCounter < num8)
27922 {
27923 wingFrame = 1;
27924 return;
27925 }
27926 if (wingFrameCounter < num8 * 2)
27927 {
27928 wingFrame = 2;
27929 return;
27930 }
27931 if (wingFrameCounter < num8 * 3)
27932 {
27933 wingFrame = 3;
27934 return;
27935 }
27936 if (wingFrameCounter < num8 * 4 - 1)
27937 {
27938 wingFrame = 2;
27939 return;
27940 }
27941 wingFrame = 2;
27942 wingFrameCounter = 0;
27943 }
27944 else if (velocity.Y != 0f)
27945 {
27946 wingFrame = 2;
27947 }
27948 else
27949 {
27950 wingFrame = 0;
27951 }
27952 return;
27953 }
27954 if (wings == 24)
27955 {
27956 if (wingFlap || jump > 0)
27957 {
27959 int num9 = 1;
27960 if (wingFrameCounter < num9)
27961 {
27962 wingFrame = 1;
27963 return;
27964 }
27965 if (wingFrameCounter < num9 * 2)
27966 {
27967 wingFrame = 2;
27968 return;
27969 }
27970 if (wingFrameCounter < num9 * 3)
27971 {
27972 wingFrame = 3;
27973 return;
27974 }
27975 wingFrame = 2;
27976 if (wingFrameCounter >= num9 * 4 - 1)
27977 {
27978 wingFrameCounter = 0;
27979 }
27980 }
27981 else if (velocity.Y != 0f)
27982 {
27983 if (controlJump)
27984 {
27986 int num10 = 3;
27987 if (wingFrameCounter < num10)
27988 {
27989 wingFrame = 1;
27990 return;
27991 }
27992 if (wingFrameCounter < num10 * 2)
27993 {
27994 wingFrame = 2;
27995 return;
27996 }
27997 if (wingFrameCounter < num10 * 3)
27998 {
27999 wingFrame = 3;
28000 return;
28001 }
28002 wingFrame = 2;
28003 if (wingFrameCounter >= num10 * 4 - 1)
28004 {
28005 wingFrameCounter = 0;
28006 }
28007 }
28008 else if (wingTime == 0f)
28009 {
28010 wingFrame = 0;
28011 }
28012 else
28013 {
28014 wingFrame = 1;
28015 }
28016 }
28017 else
28018 {
28019 wingFrame = 0;
28020 }
28021 return;
28022 }
28023 if (wings == 30)
28024 {
28025 bool flag2 = false;
28026 if (wingFlap || jump > 0)
28027 {
28029 int num11 = 2;
28030 if (wingFrameCounter >= num11 * 3)
28031 {
28032 wingFrameCounter = 0;
28033 }
28035 flag2 = true;
28036 }
28037 else if (velocity.Y != 0f)
28038 {
28039 if (controlJump)
28040 {
28042 int num12 = 2;
28043 if (wingFrameCounter >= num12 * 3)
28044 {
28045 wingFrameCounter = 0;
28046 }
28048 flag2 = true;
28049 }
28050 else if (wingTime == 0f)
28051 {
28052 wingFrame = 0;
28053 }
28054 else
28055 {
28056 wingFrame = 0;
28057 }
28058 }
28059 else
28060 {
28061 wingFrame = 0;
28062 }
28063 if (!flag2)
28064 {
28065 return;
28066 }
28067 for (int j = 0; j < 4; j++)
28068 {
28069 if (Main.rand.Next(4) == 0)
28070 {
28071 Vector2 vector = (-0.74539816f + (float)Math.PI / 8f * (float)j + 0.03f * (float)j).ToRotationVector2() * new Vector2(-direction * 20, 20f);
28072 Dust dust = Main.dust[Dust.NewDust(base.Center, 0, 0, 229, 0f, 0f, 100, Color.White, 0.8f)];
28073 dust.noGravity = true;
28074 dust.noLightEmittence = flag;
28075 dust.position = base.Center + vector;
28076 dust.velocity = DirectionTo(dust.position) * 2f;
28077 if (Main.rand.Next(10) != 0)
28078 {
28079 dust.customData = this;
28080 }
28081 else
28082 {
28083 dust.fadeIn = 0.5f;
28084 }
28085 dust.shader = GameShaders.Armor.GetSecondaryShader(cWings, this);
28086 }
28087 }
28088 for (int k = 0; k < 4; k++)
28089 {
28090 if (Main.rand.Next(8) == 0)
28091 {
28092 Vector2 vector2 = (-0.7053982f + (float)Math.PI / 8f * (float)k + 0.03f * (float)k).ToRotationVector2() * new Vector2(direction * 20, 24f) + new Vector2((float)(-direction) * 16f, 0f);
28093 Dust dust2 = Main.dust[Dust.NewDust(base.Center, 0, 0, 229, 0f, 0f, 100, Color.White, 0.5f)];
28094 dust2.noGravity = true;
28095 dust2.noLightEmittence = flag;
28096 dust2.position = base.Center + vector2;
28097 dust2.velocity = Vector2.Normalize(dust2.position - base.Center - new Vector2((float)(-direction) * 16f, 0f)) * 2f;
28098 dust2.position += dust2.velocity * 5f;
28099 if (Main.rand.Next(10) != 0)
28100 {
28101 dust2.customData = this;
28102 }
28103 else
28104 {
28105 dust2.fadeIn = 0.5f;
28106 }
28107 dust2.shader = GameShaders.Armor.GetSecondaryShader(cWings, this);
28108 }
28109 }
28110 return;
28111 }
28113 {
28114 if (wingFlap || jump > 0)
28115 {
28117 int num13 = 4;
28118 if (wingFrameCounter >= num13 * 6)
28119 {
28120 wingFrameCounter = 0;
28121 }
28123 }
28124 else if (velocity.Y != 0f)
28125 {
28126 if (controlJump)
28127 {
28129 int num14 = 9;
28130 if (wingFrameCounter >= num14 * 6)
28131 {
28132 wingFrameCounter = 0;
28133 }
28135 }
28136 else
28137 {
28139 int num15 = 6;
28140 if (wingFrameCounter >= num15 * 6)
28141 {
28142 wingFrameCounter = 0;
28143 }
28145 }
28146 }
28147 else
28148 {
28150 int num16 = 4;
28151 if (wingFrameCounter >= num16 * 6)
28152 {
28153 wingFrameCounter = 0;
28154 }
28156 }
28157 return;
28158 }
28160 {
28161 if (wingTime > 0f)
28162 {
28163 rocketDelay2--;
28164 if (rocketDelay2 <= 0)
28165 {
28167 rocketDelay2 = 30;
28168 }
28169 }
28170 if (velocity.Y == 0f)
28171 {
28172 wingFrameCounter = 0;
28173 wingFrame = 0;
28174 }
28175 else
28176 {
28178 int num17 = 3;
28179 if (wingTime == 0f)
28180 {
28181 num17 = 5;
28182 }
28183 if (wingFrameCounter >= num17 * 6)
28184 {
28185 wingFrameCounter = 0;
28186 }
28188 }
28189 if (Main.netMode != 2 && Main.rand.Next(8) == 0)
28190 {
28191 Rectangle r = Utils.CenteredRectangle(Main.ReverseGravitySupport(base.Bottom - Main.screenPosition) + Main.screenPosition, new Vector2(40f, 24f));
28192 Dust dust3 = Dust.NewDustDirect(r.TopLeft(), r.Width, r.Height, 43, 0f, 0f, 0, Color.White * 0.5f, 0.2f);
28193 dust3.fadeIn = 0.4f;
28194 dust3.velocity += velocity;
28195 dust3.velocity *= 0.35f;
28196 dust3.shader = GameShaders.Armor.GetSecondaryShader(cWings, this);
28197 }
28198 return;
28199 }
28201 {
28202 int num18 = 5;
28203 if (wingFlap || jump > 0)
28204 {
28206 if (wingFrameCounter >= num18 * 6)
28207 {
28208 wingFrameCounter = 0;
28209 }
28211 }
28212 else if (velocity.Y != 0f)
28213 {
28214 if (controlJump)
28215 {
28216 wingFrame = 2;
28217 }
28218 else if (ShouldFloatInWater && wet)
28219 {
28220 wingFrame = 0;
28221 }
28222 else
28223 {
28224 wingFrame = 3;
28225 }
28226 }
28227 else
28228 {
28230 if (wingFrameCounter >= num18 * 6)
28231 {
28232 wingFrameCounter = 0;
28233 }
28235 }
28236 return;
28237 }
28239 {
28240 if (wingFlap || jump > 0)
28241 {
28243 int num19 = 4;
28244 if (wingFrameCounter >= num19 * 6)
28245 {
28246 wingFrameCounter = 0;
28247 }
28249 }
28250 else if (velocity.Y != 0f)
28251 {
28252 if (controlJump)
28253 {
28255 int num20 = 9;
28256 if (wingFrameCounter >= num20 * 6)
28257 {
28258 wingFrameCounter = 0;
28259 }
28261 }
28262 else
28263 {
28265 int num21 = 6;
28266 if (wingFrameCounter >= num21 * 6)
28267 {
28268 wingFrameCounter = 0;
28269 }
28271 }
28272 }
28273 else
28274 {
28276 int num22 = 4;
28277 if (wingFrameCounter >= num22 * 6)
28278 {
28279 wingFrameCounter = 0;
28280 }
28282 }
28283 int num23 = 1;
28284 if (wingFrame == 3)
28285 {
28286 num23 = 5;
28287 }
28288 if (velocity.Y == 0f)
28289 {
28290 num23 = 0;
28291 }
28292 Rectangle r2 = Utils.CenteredRectangle((gravDir == 1f) ? (base.Bottom + new Vector2(0f, -10f)) : (base.Top + new Vector2(0f, 10f)), new Vector2(50f, 20f));
28293 for (int l = 0; l < num23; l++)
28294 {
28295 Dust dust4 = Dust.NewDustDirect(r2.TopLeft(), r2.Width, r2.Height, 31, 0f, 0f, 0, Color.Black);
28296 dust4.scale = 0.7f;
28297 dust4.velocity *= 0.4f;
28298 dust4.velocity.Y += gravDir * 0.5f;
28299 dust4.shader = GameShaders.Armor.GetSecondaryShader(cWings, this);
28300 }
28301 return;
28302 }
28303 if (wings == 33)
28304 {
28305 bool flag3 = false;
28306 if (wingFlap || jump > 0)
28307 {
28308 flag3 = true;
28309 }
28310 else if (velocity.Y != 0f && controlJump)
28311 {
28312 flag3 = true;
28313 }
28314 if (!flag3)
28315 {
28316 return;
28317 }
28318 Color newColor = Main.hslToRgb(Main.rgbToHsl(eyeColor).X, 1f, 0.5f);
28319 int num24 = ((direction != 1) ? (-4) : 0);
28320 int num25 = ((gravDir == 1f) ? height : 0);
28321 for (int m = 0; m < 2; m++)
28322 {
28323 Dust dust5 = Main.dust[Dust.NewDust(position, width, height, 182, velocity.X, velocity.Y, 127, newColor)];
28324 dust5.noGravity = true;
28325 dust5.fadeIn = 1f;
28326 dust5.scale = 1f;
28327 dust5.noLight = true;
28328 dust5.noLightEmittence = flag;
28329 dust5.shader = GameShaders.Armor.GetSecondaryShader(cWings, this);
28330 switch (m)
28331 {
28332 case 0:
28333 dust5.position = new Vector2(position.X + (float)num24, position.Y + (float)num25);
28334 dust5.velocity.X = dust5.velocity.X * 1f - 2f - velocity.X * 0.3f;
28335 dust5.velocity.Y = dust5.velocity.Y * 1f + 2f * gravDir - velocity.Y * 0.3f;
28336 break;
28337 case 1:
28338 dust5.position = new Vector2(position.X + (float)width + (float)num24, position.Y + (float)num25);
28339 dust5.velocity.X = dust5.velocity.X * 1f + 2f - velocity.X * 0.3f;
28340 dust5.velocity.Y = dust5.velocity.Y * 1f + 2f * gravDir - velocity.Y * 0.3f;
28341 break;
28342 }
28343 if (dust5.dustIndex != 6000)
28344 {
28345 Dust dust6 = Dust.CloneDust(dust5);
28346 dust6.scale *= 0.65f;
28347 dust6.fadeIn *= 0.65f;
28348 dust6.color = new Color(255, 255, 255, 255);
28349 dust5.noLight = true;
28350 dust5.noLightEmittence = flag;
28351 dust5.shader = GameShaders.Armor.GetSecondaryShader(cWings, this);
28352 }
28353 }
28354 return;
28355 }
28356 if (wings == 38)
28357 {
28358 bool flag4 = false;
28359 if (wingFlap || jump > 0)
28360 {
28362 if (wingFrameCounter >= 32)
28363 {
28364 wingFrameCounter = 0;
28365 }
28366 wingFrame = 1 + wingFrameCounter / 8;
28367 if (wingFrame == 4)
28368 {
28369 wingFrame = 2;
28370 }
28371 flag4 = true;
28372 }
28373 else if (velocity.Y != 0f)
28374 {
28375 if (controlJump)
28376 {
28378 if (wingFrameCounter >= 32)
28379 {
28380 wingFrameCounter = 0;
28381 }
28382 wingFrame = 1 + wingFrameCounter / 8;
28383 if (wingFrame == 4)
28384 {
28385 wingFrame = 2;
28386 }
28387 flag4 = true;
28388 }
28389 else
28390 {
28391 wingFrame = 0;
28392 }
28393 }
28394 else
28395 {
28396 wingFrame = 0;
28397 }
28398 if (!flag4)
28399 {
28400 return;
28401 }
28403 Vector2 value = velocity * 0.5f;
28404 int type2 = 267;
28405 int num26 = miscCounter * direction;
28406 for (int n = 0; n < 3; n++)
28407 {
28409 switch (n)
28410 {
28411 case 1:
28412 vector4 = velocity * -0.33f;
28413 break;
28414 case 2:
28415 vector4 = velocity * -0.66f;
28416 break;
28417 }
28418 Vector2 vector5 = new Vector2(-39f, 6f) * vector3 + new Vector2(2f, 0f).RotatedBy((float)num26 / -15f * ((float)Math.PI * 2f));
28419 Dust dust7 = Dust.NewDustPerfect(base.Center + vector5 + vector4, type2, value, 0, underShirtColor);
28420 dust7.noGravity = true;
28421 dust7.noLight = true;
28422 dust7.noLightEmittence = flag;
28423 dust7.scale = 0.47f;
28424 dust7.shader = GameShaders.Armor.GetSecondaryShader(cWings, this);
28425 vector5 = new Vector2(-23f, 2f) * vector3 + new Vector2(2f, 0f).RotatedBy((float)num26 / -15f * ((float)Math.PI * 2f));
28426 Dust dust8 = Dust.NewDustPerfect(base.Center + vector5 + vector4, type2, value, 0, underShirtColor);
28427 dust8.noGravity = true;
28428 dust8.noLight = true;
28429 dust8.noLightEmittence = flag;
28430 dust8.scale = 0.35f;
28431 dust8.shader = GameShaders.Armor.GetSecondaryShader(cWings, this);
28432 vector5 = new Vector2(-31f, -6f) * vector3 + new Vector2(2f, 0f).RotatedBy((float)num26 / -20f * ((float)Math.PI * 2f));
28433 Dust dust9 = Dust.NewDustPerfect(base.Center + vector5 + vector4, type2, value, 0, underShirtColor);
28434 dust9.noGravity = true;
28435 dust9.noLight = true;
28436 dust9.noLightEmittence = flag;
28437 dust9.scale = 0.49f;
28438 dust9.shader = GameShaders.Armor.GetSecondaryShader(cWings, this);
28439 }
28440 return;
28441 }
28442 int num27 = 4;
28443 int num28 = 4;
28444 int num29 = 0;
28445 if (wings == 43)
28446 {
28447 num28 = 7;
28448 num29 = 1;
28449 num27 = 3;
28450 }
28451 if (wings == 32)
28452 {
28453 num27 = 3;
28454 }
28455 if (wingFlap || jump > 0)
28456 {
28458 if (wingFrameCounter > num27)
28459 {
28460 wingFrame++;
28461 wingFrameCounter = 0;
28462 if (wingFrame >= num28)
28463 {
28464 wingFrame = num29;
28465 }
28466 }
28467 }
28468 else if (velocity.Y != 0f)
28469 {
28470 wingFrame = 1;
28471 if (wings == 32)
28472 {
28473 wingFrame = 3;
28474 }
28475 if (wings == 43)
28476 {
28477 wingFrame = 2;
28478 if (ShouldFloatInWater && wet)
28479 {
28480 wingFrame = 0;
28481 }
28482 }
28483 if (wings == 29 && Main.rand.Next(5) == 0)
28484 {
28485 int num30 = 4;
28486 if (direction == 1)
28487 {
28488 num30 = -40;
28489 }
28490 int num31 = Dust.NewDust(new Vector2(position.X + (float)(width / 2) + (float)num30, position.Y + (float)(height / 2) - 15f), 30, 30, 6, 0f, 0f, 100, default(Color), 2.4f);
28491 Main.dust[num31].noGravity = true;
28492 Main.dust[num31].noLightEmittence = flag;
28493 Main.dust[num31].velocity *= 0.3f;
28494 if (Main.rand.Next(10) == 0)
28495 {
28496 Main.dust[num31].fadeIn = 2f;
28497 }
28498 Main.dust[num31].shader = GameShaders.Armor.GetSecondaryShader(cWings, this);
28499 }
28500 }
28501 else
28502 {
28503 wingFrame = 0;
28504 }
28505 }
const double PI
Definition Math.cs:16
static void PlaySound(int type, Vector2 position, int style=1)
Vector2 Top
Definition Entity.cs:79
Vector2 velocity
Definition Entity.cs:16
Vector2 position
Definition Entity.cs:14
Vector2 DirectionTo(Vector2 Destination)
Definition Entity.cs:197
static ArmorShaderDataSet Armor
Definition GameShaders.cs:7
static readonly LegacySoundStyle Item24
Definition SoundID.cs:462
static readonly LegacySoundStyle Item13
Definition SoundID.cs:440
Color underShirtColor
Definition Player.cs:2141
bool TryingToHoverDown
Definition Player.cs:3412
int wingFrameCounter
Definition Player.cs:1031
bool ShouldFloatInWater
Definition Player.cs:3348
bool ShouldDrawWingsThatAreAlwaysAnimated()
Definition Player.cs:28507
bool TryingToHoverUp
Definition Player.cs:3400

References Terraria.Lighting.AddLight(), Terraria.Graphics.Shaders.GameShaders.Armor, Microsoft.Xna.Framework.Color.Black, Terraria.Utils.CenteredRectangle(), Terraria.Dust.CloneDust(), Terraria.Main.dust, Terraria.Main.hslToRgb(), Terraria.ID.SoundID.Item13, Terraria.ID.SoundID.Item24, Terraria.Main.netMode, Terraria.Dust.NewDust(), Terraria.Dust.NewDustDirect(), Terraria.Dust.NewDustPerfect(), Microsoft.Xna.Framework.Vector2.Normalize(), System.Math.PI, Terraria.Audio.SoundEngine.PlaySound(), Terraria.Dust.position, Terraria.Main.rand, Terraria.Main.ReverseGravitySupport(), Terraria.Main.rgbToHsl(), Terraria.Main.screenPosition, System.type, System.value, Microsoft.Xna.Framework.Color.White, and Microsoft.Xna.Framework.Vector2.Zero.

Referenced by Terraria.GameContent.UI.Elements.UICharacter.UpdateAnim().