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

◆ oldPos

Vector2 [] Terraria.Projectile.oldPos = (Vector2[])(object)new Vector2[10]

Holds the value of F:Terraria.Entity.position from previous updates from newest to oldest. Use for drawing trails. Must be used with F:Terraria.ID.ProjectileID.Sets.TrailCacheLength and F:Terraria.ID.ProjectileID.Sets.TrailingMode to be used properly.

Definition at line 304 of file Projectile.cs.

Referenced by Terraria.Projectile.CloneDefaults(), Terraria.Projectile.Colliding(), Terraria.Projectile.SetDefaults(), and Terraria.Projectile.Update().