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

◆ GetWheelsPositions()

static void Terraria.Minecart.GetWheelsPositions ( Player player,
Vector2 Position,
int Width,
int Height,
bool followDown,
bool followUp,
Mount::MountDelegatesData delegatesData,
out Vector2 leftWheel,
out Vector2 rightWheel )
inlinestatic

Definition at line 1260 of file Minecart.cs.

1261 {
1262 leftWheel = Position;
1263 rightWheel = Position;
1264 Vector2 lastBoost = Vector2.Zero;
1265 Vector2 Velocity = new Vector2(-12f, 0f);
1266 TrackCollision(player, ref leftWheel, ref Velocity, ref lastBoost, Width, Height, followDown, followUp, 0, trackOnly: true, delegatesData);
1267 leftWheel += Velocity;
1268 Velocity = new Vector2(12f, 0f);
1269 TrackCollision(player, ref rightWheel, ref Velocity, ref lastBoost, Width, Height, followDown, followUp, 0, trackOnly: true, delegatesData);
1270 rightWheel += Velocity;
1271 }
static BitsByte TrackCollision(Player Player, ref Vector2 Position, ref Vector2 Velocity, ref Vector2 lastBoost, int Width, int Height, bool followDown, bool followUp, int fallStart, bool trackOnly, Mount.MountDelegatesData delegatesData)
Definition Minecart.cs:550

References Terraria.Minecart.TrackCollision(), and Microsoft.Xna.Framework.Vector2.Zero.

Referenced by Terraria.Minecart.TrackRotation().