Definition at line 51433 of file Player.cs.
51434 {
51435
51436
51437
51438
51439
51440
51441
51442
51443
51444
51445
51446
51447
51448
51449
51450
51451
51452
51453
51454
51455
51456
51457
51458
51459
51460
51461
51462
51463
51464
51465
51466
51467
51468
51469
51470
51471
51472 float num = rotation + (float)
Math.PI / 2
f;
51473 Vector2
vector =
default(Vector2);
51475 switch (stretch)
51476 {
51477 case CompositeArmStretchAmount.Full:
51479 break;
51480 case CompositeArmStretchAmount.None:
51482 break;
51483 case CompositeArmStretchAmount.Quarter:
51485 break;
51486 case CompositeArmStretchAmount.ThreeQuarters:
51488 break;
51489 }
51491 {
51493 vector += Utils.RotatedBy(
new Vector2(0
f, -3
f), rotation + (
float)
Math.PI / 2
f);
51494 }
51495 else
51496 {
51498 vector += Utils.RotatedBy(
new Vector2(0
f, 3
f), rotation + (
float)
Math.PI / 2
f);
51499 }
51501 }
Vector2 MountedCenter
Returns the player's center adjusted for mount and step stool usage. Typically used in conjunction wi...
References Terraria.Entity.direction, Terraria.Player.MountedCenter, and Terraria.Utils.RotatedBy().
Referenced by Terraria.Player.ItemCheck_ApplyUseStyle_Inner().