public static float Distance(Vector3 pos) { return (float)Math.Sqrt((pos.X * pos.X) + (pos.Y * pos.Y) + (pos.Z * pos.Z)); } public static float LengthDirX(float Length, float Direction)