public RailInfo(GravityRail myRail, Vector2 point, Vector2 tan, float dist) { alongRail = true; rail = myRail; closestPoint = point; tangent = tan; distance = dist; }
public void RemoveTrackSegment(GravityRail rail) { rails.Remove(rail); }
public RailInfo(GravityRail myRail) { alongRail = false; rail = myRail; }
public void AddTrackSegment(GravityRail rail) { rails.Add(rail); }