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

◆ Update()

void Terraria.GameContent.Golf.FancyGolfPredictionLine.Update ( Entity golfBall,
Vector2 impactVelocity,
float roughLandResistance )
inline

Definition at line 40 of file FancyGolfPredictionLine.cs.

41 {
42 bool flag = Main.tileSolid[379];
43 Main.tileSolid[379] = false;
45 _time += 1f / 60f;
46 _entity.position = golfBall.position;
47 _entity.width = golfBall.width;
48 _entity.height = golfBall.height;
49 GolfHelper.HitGolfBall(_entity, impactVelocity, roughLandResistance);
51 float angularVelocity = 0f;
52 for (int i = 0; i < _iterations; i++)
53 {
54 GolfHelper.StepGolfBall(_entity, ref angularVelocity);
56 }
57 Main.tileSolid[379] = flag;
58 }
Vector2 position
Definition Entity.cs:14

References Terraria.GameContent.Golf.FancyGolfPredictionLine._entity, Terraria.GameContent.Golf.FancyGolfPredictionLine._iterations, Terraria.GameContent.Golf.FancyGolfPredictionLine._positions, Terraria.GameContent.Golf.FancyGolfPredictionLine._time, System.Collections.Generic.List< T >.Add(), System.Collections.Generic.List< T >.Clear(), Terraria.GameContent.Golf.GolfHelper.HitGolfBall(), Terraria.Entity.position, Terraria.GameContent.Golf.GolfHelper.StepGolfBall(), and Terraria.Main.tileSolid.