public void setLength(float a_length) { m_lenght = a_length; m_endPosition = new CartesianCoordinate(m_position.getGlobalCartesian() + new Vector2(0, (float)Math.Max(m_lenght, 72))); m_line.updateTexture(); }