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

◆ RotatedRelativePointOld()

Vector2 Terraria.Player.RotatedRelativePointOld ( Vector2 pos,
bool rotateForward = true )
inline

Definition at line 4705 of file Player.cs.

4706 {
4707 //IL_0001: Unknown result type (might be due to invalid IL or missing references)
4708 //IL_0007: Unknown result type (might be due to invalid IL or missing references)
4709 //IL_000c: Unknown result type (might be due to invalid IL or missing references)
4710 //IL_0011: Unknown result type (might be due to invalid IL or missing references)
4711 //IL_0020: Unknown result type (might be due to invalid IL or missing references)
4712 //IL_0025: Unknown result type (might be due to invalid IL or missing references)
4713 //IL_0026: Unknown result type (might be due to invalid IL or missing references)
4714 //IL_0028: Unknown result type (might be due to invalid IL or missing references)
4715 //IL_002e: Unknown result type (might be due to invalid IL or missing references)
4716 //IL_0033: Unknown result type (might be due to invalid IL or missing references)
4717 //IL_0038: Unknown result type (might be due to invalid IL or missing references)
4718 //IL_003d: Unknown result type (might be due to invalid IL or missing references)
4719 //IL_003f: Unknown result type (might be due to invalid IL or missing references)
4720 //IL_0040: Unknown result type (might be due to invalid IL or missing references)
4721 //IL_0041: Unknown result type (might be due to invalid IL or missing references)
4722 //IL_0046: Unknown result type (might be due to invalid IL or missing references)
4723 //IL_0048: Unknown result type (might be due to invalid IL or missing references)
4724 //IL_0049: Unknown result type (might be due to invalid IL or missing references)
4725 //IL_004a: Unknown result type (might be due to invalid IL or missing references)
4727 Matrix matrix = Matrix.CreateRotationZ(fullRotation * (float)rotateForward.ToInt());
4729 pos = Vector2.Transform(pos, matrix);
4730 return pos + vector;
4731 }
Vector2 position
The position of this Entity in world coordinates.
Definition Entity.cs:28
float fullRotation
Definition Player.cs:1801
Vector2 fullRotationOrigin
Definition Player.cs:1803

References Terraria.Player.fullRotation, Terraria.Player.fullRotationOrigin, and Terraria.Entity.position.