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

◆ RotateForwardWhenWalking()

static void Terraria.DelegateMethods.CharacterPreview.RotateForwardWhenWalking ( Projectile proj,
bool walking )
inlinestatic

Definition at line 123 of file DelegateMethods.cs.

124 {
125 if (walking)
126 {
127 proj.rotation = (float)Math.PI / 6f;
128 }
129 else
130 {
131 proj.rotation = 0f;
132 }
133 }
const double PI
Definition Math.cs:16

References System.Math.PI.

Referenced by Terraria.DelegateMethods.CharacterPreview.FloatAndRotateForwardWhenWalking().