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

◆ DrawPredictionLine()

static void Terraria.GameContent.Golf.GolfHelper.DrawPredictionLine ( Entity golfBall,
Vector2 impactVelocity,
float chargeProgress,
float roughLandResistance )
inlinestatic

Definition at line 493 of file GolfHelper.cs.

494 {
495 if (PredictionLine == null)
496 {
497 PredictionLine = new FancyGolfPredictionLine(20);
498 }
499 PredictionLine.Update(golfBall, impactVelocity, roughLandResistance);
500 PredictionLine.Draw(Main.Camera, Main.spriteBatch, chargeProgress);
501 }
static FancyGolfPredictionLine PredictionLine

References Terraria.Main.Camera, Terraria.GameContent.Golf.GolfHelper.PredictionLine, and Terraria.Main.spriteBatch.

Referenced by Terraria.Main.DrawProjDirect().