public void AddPlayer(Vec2F pos) { if (Player == null) { PlayerStartPosition = pos.Copy(); Player = new Player(); Player.Shape.Position = pos; } }
public static Vec2F Normalize(Vec2F v) { return(v.Copy() * (1.0f / (float)v.Length())); }
public void AddPlayer(Vec2F pos) { if (Player == null) { PlayerStartPosition = pos.Copy(); Player = new Player(); Player.Shape.Position = pos; } }
public static Vec2F Normalize(Vec2F v) { return(v.Copy() * (1.0f / (float)v.Length())); }